#120936#120936

#120936 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.082 H 284.5°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#120936
RGBrgb(18, 9, 54)
HSLhsl(252, 71%, 12%)
HSVhsv(252, 83%, 21%)
CMYKcmyk(66.7%, 83.3%, 0%, 78.8%)
CIE-LABlab(5.33, 18.08, -27.11)
CIE-LCHlch(5.33, 32.59, 303.69°)
OKLaboklab(18.93% 0.0206 -0.0799)
OKLCHoklch(18.93% 0.082 284.5)
XYZxyz(1.0128, 0.5903, 3.5499)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120936 #2D3609
analogous
#091736 #120936 #290936
triadic
#120936 #361209 #093612
tetradic
#120936 #360917 #2D3609 #093629
square
#120936 #360917 #2D3609 #093629
split-complementary
#120936 #362909 #173609
monochromatic
#09041A #09041A #120936 #23126A #351A9F

Accessibility & contrast

On white

18.78
#120936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120936
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120936#FFFFFF#000000##FFFFFF
##1209361.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001035
Tritanopia (blue-blind)
#03151E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120936;
/* rgb */ color: rgb(18, 9, 54);
/* oklch */ color: oklch(18.9% 0.082 284.5);
Tailwind
colors: {
  custom: {
    50: '#544a6d',
    500: '#120936',
    950: '#000000',
  },
}
SCSS
$custom: #120936;
$custom-light: #544a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#120936",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18931,
    "c": 0.08249,
    "h": 284.5
  },
  "luminance": 0.0059
}

Semantic roles & 50–950 ramp

primary
#120936
secondary
#657427
accent
#EE3ACA
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #120936

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#120936 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva