#18121A#18121A

#18121A is a very dark, near-neutral purple. Relative luminance 0.007; OKLCH L 19.3% C 0.018 H 317.6°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#18121A
RGBrgb(24, 18, 26)
HSLhsl(285, 18%, 9%)
HSVhsv(285, 31%, 10%)
CMYKcmyk(7.7%, 30.8%, 0%, 89.8%)
CIE-LABlab(6.34, 4.62, -4.35)
CIE-LCHlch(6.34, 6.34, 316.73°)
OKLaboklab(19.34% 0.0135 -0.0124)
OKLCHoklch(19.34% 0.018 317.6)
XYZxyz(0.7794, 0.7014, 1.0714)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18121A #141A12
analogous
#14121A #18121A #1A1218
triadic
#18121A #1A1812 #121A18
tetradic
#18121A #1A1412 #141A12 #12181A
square
#18121A #1A1412 #141A12 #12181A
split-complementary
#18121A #181A12 #121A14
monochromatic
#110D12 #110D12 #18121A #392B3E #5B4462

Accessibility & contrast

On white

18.42
#18121A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#18121A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18121A
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18121A#FFFFFF#000000##FFFFFF
##18121A1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11141A
Deuteranopia (green-blind)
#12141A
Tritanopia (blue-blind)
#181315
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #18121a;
/* rgb */ color: rgb(24, 18, 26);
/* oklch */ color: oklch(19.3% 0.018 317.6);
Tailwind
colors: {
  custom: {
    50: '#544f56',
    500: '#18121a',
    950: '#000000',
  },
}
SCSS
$custom: #18121a;
$custom-light: #544f56;
$custom-dark: #000000;
JSON
{
  "hex": "#18121a",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 26
  },
  "hsl": {
    "h": 285,
    "s": 18.182,
    "l": 8.627
  },
  "oklch": {
    "l": 0.1934,
    "c": 0.01833,
    "h": 317.6
  },
  "luminance": 0.00701
}

Semantic roles & 50–950 ramp

primary
#18121A
secondary
#404D3B
accent
#BB6D80
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18121A

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

Preview Lab → · Contrast checker → · Palette generator →

#18121A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva