#21270A#21270A

#21270A is a dark, muted yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.048 H 119.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#21270A
RGBrgb(33, 39, 10)
HSLhsl(72, 59%, 10%)
HSVhsv(72, 74%, 15%)
CMYKcmyk(15.4%, 0%, 74.4%, 84.7%)
CIE-LABlab(14.38, -8.16, 16.79)
CIE-LCHlch(14.38, 18.67, 115.93°)
OKLaboklab(25.91% -0.0236 0.0414)
OKLCHoklch(25.91% 0.048 119.7)
XYZxyz(1.4075, 1.7963, 0.5597)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21270A #100A27
analogous
#271F0A #21270A #13270A
triadic
#21270A #0A2127 #270A21
tetradic
#21270A #0A271F #100A27 #270A13
square
#21270A #0A271F #100A27 #270A13
split-complementary
#21270A #0A1327 #1F0A27
monochromatic
#151806 #151806 #21270A #4A5816 #738823

Accessibility & contrast

On white

15.45
#21270A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21270A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21270A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21270A#FFFFFF#000000##FFFFFF
##21270A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2407
Deuteranopia (green-blind)
#29240C
Tritanopia (blue-blind)
#232521
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21270a;
/* rgb */ color: rgb(33, 39, 10);
/* oklch */ color: oklch(25.9% 0.048 119.7);
Tailwind
colors: {
  custom: {
    50: '#5d614b',
    500: '#21270a',
    950: '#000000',
  },
}
SCSS
$custom: #21270a;
$custom-light: #5d614b;
$custom-dark: #000000;
JSON
{
  "hex": "#21270a",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 10
  },
  "hsl": {
    "h": 72.414,
    "s": 59.184,
    "l": 9.608
  },
  "oklch": {
    "l": 0.25908,
    "c": 0.04759,
    "h": 119.7
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#21270A
secondary
#352964
accent
#45E266
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040501
muted
#797977

Preview Lab

Preview with #21270A

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

Preview Lab → · Contrast checker → · Palette generator →

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