#21240B#21240B

#21240B is a dark, muted yellow. Relative luminance 0.016; OKLCH L 25.0% C 0.041 H 115.1°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#21240B
RGBrgb(33, 36, 11)
HSLhsl(67, 53%, 9%)
HSVhsv(67, 69%, 14%)
CMYKcmyk(8.3%, 0%, 69.4%, 85.9%)
CIE-LABlab(13.29, -6.10, 14.93)
CIE-LCHlch(13.29, 16.13, 112.21°)
OKLaboklab(25.04% -0.0176 0.0375)
OKLCHoklch(25.04% 0.041 115.1)
XYZxyz(1.3185, 1.6093, 0.5577)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21240B #0E0B24
analogous
#241B0B #21240B #15240B
triadic
#21240B #0B2124 #240B21
tetradic
#21240B #0B241B #0E0B24 #240B15
square
#21240B #0B241B #0E0B24 #240B15
split-complementary
#21240B #0B1524 #1B0B24
monochromatic
#151707 #151707 #21240B #4C5319 #778228

Accessibility & contrast

On white

15.89
#21240B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21240B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21240B
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21240B#FFFFFF#000000##FFFFFF
##21240B1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272209
Deuteranopia (green-blind)
#27220C
Tritanopia (blue-blind)
#23221E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21240b;
/* rgb */ color: rgb(33, 36, 11);
/* oklch */ color: oklch(25.0% 0.041 115.1);
Tailwind
colors: {
  custom: {
    50: '#5c5e4c',
    500: '#21240b',
    950: '#000000',
  },
}
SCSS
$custom: #21240b;
$custom-light: #5c5e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#21240b",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 11
  },
  "hsl": {
    "h": 67.2,
    "s": 53.191,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25036,
    "c": 0.04147,
    "h": 115.1
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#21240B
secondary
#322C5F
accent
#4BDD5D
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040401
muted
#797977

Preview Lab

Preview with #21240B

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

Preview Lab → · Contrast checker → · Palette generator →

#21240B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva