#120018#120018

#120018 is a very dark, moderate purple. Relative luminance 0.002; OKLCH L 13.4% C 0.065 H 318.6°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#120018
RGBrgb(18, 0, 24)
HSLhsl(285, 100%, 5%)
HSVhsv(285, 100%, 9%)
CMYKcmyk(25%, 100%, 0%, 90.6%)
CIE-LABlab(1.76, 9.39, -9.55)
CIE-LCHlch(1.76, 13.40, 314.52°)
OKLaboklab(13.37% 0.0485 -0.0428)
OKLCHoklch(13.37% 0.065 318.6)
XYZxyz(0.4143, 0.1946, 0.8797)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120018 #061800
analogous
#060018 #120018 #180012
triadic
#120018 #181200 #001812
tetradic
#120018 #180600 #061800 #001218
square
#120018 #180600 #061800 #001218
split-complementary
#120018 #121800 #001806
monochromatic
#17001F #17001F #17001F #400055 #6E0092

Accessibility & contrast

On white

20.21
#120018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#120018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120018
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120018#FFFFFF#000000##FFFFFF
##1200181.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000519
Deuteranopia (green-blind)
#000717
Tritanopia (blue-blind)
#120309
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #120018;
/* rgb */ color: rgb(18, 0, 24);
/* oklch */ color: oklch(13.4% 0.065 318.6);
Tailwind
colors: {
  custom: {
    50: '#4f4654',
    500: '#120018',
    950: '#000000',
  },
}
SCSS
$custom: #120018;
$custom-light: #4f4654;
$custom-dark: #000000;
JSON
{
  "hex": "#120018",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 24
  },
  "hsl": {
    "h": 285,
    "s": 100,
    "l": 4.706
  },
  "oklch": {
    "l": 0.13367,
    "c": 0.06463,
    "h": 318.6
  },
  "luminance": 0.00195
}

Semantic roles & 50–950 ramp

primary
#120018
secondary
#266211
accent
#FF295E
background
#F4F3F4
surface
#E7E5E7
border
#C3C1C3
text
#020002
muted
#787778

Preview Lab

Preview with #120018

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

Preview Lab → · Contrast checker → · Palette generator →

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