#120402#120402

#120402 is a very dark, muted red. Relative luminance 0.002; OKLCH L 13.3% C 0.031 H 35.8°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#120402
RGBrgb(18, 4, 2)
HSLhsl(8, 80%, 4%)
HSVhsv(8, 89%, 7%)
CMYKcmyk(0%, 77.8%, 88.9%, 92.9%)
CIE-LABlab(1.99, 3.89, 2.22)
CIE-LCHlch(1.99, 4.48, 29.78°)
OKLaboklab(13.33% 0.0248 0.0179)
OKLCHoklch(13.33% 0.031 35.8)
XYZxyz(0.3039, 0.2199, 0.0839)
Luminance0.0022 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120402 #021012
analogous
#120208 #120402 #120C02
triadic
#120402 #021204 #040212
tetradic
#120402 #081202 #021012 #0C0212
square
#120402 #081202 #021012 #0C0212
split-complementary
#120402 #02120C #020812
monochromatic
#1C0603 #1C0603 #1C0603 #491008 #801C0E

Accessibility & contrast

On white

20.11
#120402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120402
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120402#FFFFFF#000000##FFFFFF
##1204021.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070602
Deuteranopia (green-blind)
#0A0802
Tritanopia (blue-blind)
#150203
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #120402;
/* rgb */ color: rgb(18, 4, 2);
/* oklch */ color: oklch(13.3% 0.031 35.8);
Tailwind
colors: {
  custom: {
    50: '#4f4848',
    500: '#120402',
    950: '#000000',
  },
}
SCSS
$custom: #120402;
$custom-light: #4f4848;
$custom-dark: #000000;
JSON
{
  "hex": "#120402",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 7.5,
    "s": 80,
    "l": 3.922
  },
  "oklch": {
    "l": 0.13329,
    "c": 0.03059,
    "h": 35.8
  },
  "luminance": 0.0022
}

Semantic roles & 50–950 ramp

primary
#120402
secondary
#194F57
accent
#DEF631
background
#F4F4F4
surface
#E7E6E6
border
#C3C2C2
text
#020000
muted
#787777

Preview Lab

Preview with #120402

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

Preview Lab → · Contrast checker → · Palette generator →

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