Skip to main content

Colors of the corporate design of the KIT.

Project description

Colors of the Karlsruhe Institute of Technology (inofficial)

Taken from the KIT corporate design color scheme.

Example of colors.

Here's a list of tuples for RGB:

[
  (255, 255, 255),  # white
  (0, 0, 0),        # black
  (0, 150, 130),    # green
  (0, 100, 170),    # blue
  (140, 182, 60),   # maygreen
  (252, 229, 0),    # yellow
  (223, 155, 27),   # orange
  (167, 130, 46),   # brown
  (162, 34, 35),    # red
  (163, 16, 124),   # purple
  (35, 161, 224),   # cyan
]

Here's a dictionary for RGB:

{
    "white": (255, 255, 255),
    "black": (0, 0, 0),
    "green": (0, 150, 130),
    "blue": (0, 100, 170),
    "maygreen": (140, 182, 60),
    "yellow": (252, 229, 0),
    "orange": (223, 155, 27),
    "brown": (167, 130, 46),
    "red": (162, 34, 35),
    "purple": (163, 16, 124),
    "cyan": (35, 161, 224),
}

Here's a list of strings for HEX:

[
  "#ffffff", # white
  "#000000", # black
  "#009682", # green
  "#4664aa", # blue
  "#8cb63c", # maygreen
  "#fce500", # yellow
  "#df9b1b", # orange
  "#a7822e", # brown
  "#a22223", # red
  "#a3107c", # purple
  "#23a1e0", # cyan
]

Here's a dictionary for HEX:

{
    "white": "#ffffff",
    "black": "#000000",
    "green": "#009682",
    "blue": "#4664aa",
    "maygreen": "#8cb63c",
    "yellow": "#fce500",
    "orange": "#df9b1b",
    "brown": "#a7822e",
    "red": "#a22223",
    "purple": "#a3107c",
    "cyan": "#23a1e0",
}

Here's some LaTeX code:

\usepackage{xcolor}

\definecolor{white}{RGB}{255,255,255}
\definecolor{black}{RGB}{0,0,0}
\definecolor{green}{RGB}{0,150,130}
\definecolor{blue}{RGB}{0,100,170}
\definecolor{maygreen}{RGB}{140,182,60}
\definecolor{yellow}{RGB}{252,229,0}
\definecolor{orange}{RGB}{223,155,27}
\definecolor{brown}{RGB}{167,130,46}
\definecolor{red}{RGB}{162,34,35}
\definecolor{purple}{RGB}{163,16,124}
\definecolor{cyan}{RGB}{35,161,224}

The RGB values listed in the image are integers from 0 to 255, taken from the corporate design guide. These values are then divided by 255 and consequently lie between 0 and 1. This is the format that matplotlib needs.

Install

pip install kitcolors

Usage in Python

All colors have RGB, rgb, and hex attributes. Furthermore, there exist RGBa, rgba, and hexa methods that take alpha as an additional argument.

>>> from kitcolors import green
>>> green.rgb
(0.0, 0.5882352941176471, 0.5098039215686274)
>>> green.RGB
(0, 150, 130)
>>> green.hex
'#009682'
>>> green.rgba(0.2)
(0.0, 0.5882352941176471, 0.5098039215686274, 0.2)
>>> green.RGBa(0.2)
(0, 150, 130, 0.2)
>>> green.hexa(0.2)
'#00968233'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kitcolors-1.8.0.tar.gz (527.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kitcolors-1.8.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file kitcolors-1.8.0.tar.gz.

File metadata

  • Download URL: kitcolors-1.8.0.tar.gz
  • Upload date:
  • Size: 527.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kitcolors-1.8.0.tar.gz
Algorithm Hash digest
SHA256 e4641baf2ede7c39fafd49c77f3dfd8601abb930df07a56a6ac5ae0b3977ae0c
MD5 54eb974c1cb2ffca3c1294d91d82e21a
BLAKE2b-256 360b4f6fad9809de583096bdd199b9788795149dbc0792ca0449987b671f537f

See more details on using hashes here.

File details

Details for the file kitcolors-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: kitcolors-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kitcolors-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b466fb67d6429bd6fc514fd8a072a8e25d0a6a971ee69e7105de8e580e2bb13e
MD5 e58105471362d91400a91c278429edbe
BLAKE2b-256 817537f4df01824af49c541a39954695555b1d48e59f7d3c2ac458b52d2715fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page