Skip to main content

Colors of the corporate design of the KIT.

Project description

Colors of the Karlsruhe Institute of Technology (inofficial)

PyPI version Python versions License

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.9.0.tar.gz (528.6 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.9.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kitcolors-1.9.0.tar.gz
  • Upload date:
  • Size: 528.6 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.9.0.tar.gz
Algorithm Hash digest
SHA256 3744e5767de938817614323fe74e0663f5659688a22f3b1aa6ec39dfddaf8c14
MD5 6953d8e7dd00ec9a27305dace8bcbbbc
BLAKE2b-256 64b6fd1fa52cc094e4a82002c2e027f94ad8ff40671ac2098cca201e4a91bbd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kitcolors-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3771191b85fabd4b06d57328e999c1a2295186893189d1a9a36b95509ff65c65
MD5 af3c62ab975eb73f58fbb802f852aa71
BLAKE2b-256 b4c31d0270c235b782f6b52c239f60a5fdc0897261d2231f2f08d3cb5ca5227e

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