#12040C#12040C

#12040C is a very dark, muted pink. Relative luminance 0.002; OKLCH L 13.9% C 0.033 H 344.5°. Best body text is #FFFFFF at 20.03:1 contrast (WCAG AA passes).

Color values

HEX#12040C
RGBrgb(18, 4, 12)
HSLhsl(326, 64%, 4%)
HSVhsv(326, 78%, 7%)
CMYKcmyk(0%, 77.8%, 33.3%, 92.9%)
CIE-LABlab(2.19, 5.29, -1.60)
CIE-LCHlch(2.19, 5.53, 343.16°)
OKLaboklab(13.86% 0.0321 -0.0089)
OKLCHoklch(13.86% 0.033 344.5)
XYZxyz(0.3592, 0.2420, 0.3755)
Luminance0.0024 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12040C #04120A
analogous
#110412 #12040C #120405
triadic
#12040C #0C1204 #040C12
tetradic
#12040C #121104 #04120A #040512
square
#12040C #121104 #04120A #040512
split-complementary
#12040C #051204 #041211
monochromatic
#190611 #190611 #190611 #440F2D #761A4F

Accessibility & contrast

On white

20.03
#12040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12040C
20.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12040C#FFFFFF#000000##FFFFFF
##12040C1.0020.031.0520.03
#FFFFFF20.031.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05070C
Deuteranopia (green-blind)
#08090C
Tritanopia (blue-blind)
#140407
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #12040c;
/* rgb */ color: rgb(18, 4, 12);
/* oklch */ color: oklch(13.9% 0.033 344.5);
Tailwind
colors: {
  custom: {
    50: '#4f484c',
    500: '#12040c',
    950: '#000000',
  },
}
SCSS
$custom: #12040c;
$custom-light: #4f484c;
$custom-dark: #000000;
JSON
{
  "hex": "#12040c",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 325.714,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.13859,
    "c": 0.03331,
    "h": 344.5
  },
  "luminance": 0.00242
}

Semantic roles & 50–950 ramp

primary
#12040C
secondary
#205235
accent
#E78841
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#020001
muted
#787777

Preview Lab

Preview with #12040C

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

Preview Lab → · Contrast checker → · Palette generator →

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