#12040A#12040A

#12040A is a very dark, muted pink. Relative luminance 0.002; OKLCH L 13.8% C 0.032 H 351.5°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#12040A
RGBrgb(18, 4, 10)
HSLhsl(334, 64%, 4%)
HSVhsv(334, 78%, 7%)
CMYKcmyk(0%, 77.8%, 44.4%, 92.9%)
CIE-LABlab(2.14, 5.00, -0.80)
CIE-LCHlch(2.14, 5.06, 350.88°)
OKLaboklab(13.75% 0.0312 -0.0047)
OKLCHoklch(13.75% 0.032 351.5)
XYZxyz(0.3477, 0.2374, 0.3146)
Luminance0.0024 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12040A #04120C
analogous
#120411 #12040A #120504
triadic
#12040A #0A1204 #040A12
tetradic
#12040A #111204 #04120C #050412
square
#12040A #111204 #04120C #050412
split-complementary
#12040A #041205 #041112
monochromatic
#19060E #19060E #19060E #440F26 #761A42

Accessibility & contrast

On white

20.05
#12040A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#12040A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12040A
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12040A#FFFFFF#000000##FFFFFF
##12040A1.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05060A
Deuteranopia (green-blind)
#08090A
Tritanopia (blue-blind)
#140406
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #12040a;
/* rgb */ color: rgb(18, 4, 10);
/* oklch */ color: oklch(13.8% 0.032 351.5);
Tailwind
colors: {
  custom: {
    50: '#4f484b',
    500: '#12040a',
    950: '#000000',
  },
}
SCSS
$custom: #12040a;
$custom-light: #4f484b;
$custom-dark: #000000;
JSON
{
  "hex": "#12040a",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 10
  },
  "hsl": {
    "h": 334.286,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.13752,
    "c": 0.03159,
    "h": 351.5
  },
  "luminance": 0.00237
}

Semantic roles & 50–950 ramp

primary
#12040A
secondary
#20523D
accent
#E7A041
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#020001
muted
#787777

Preview Lab

Preview with #12040A

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

Preview Lab → · Contrast checker → · Palette generator →

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