#21400C#21400C

#21400C is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.5% C 0.086 H 135.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#21400C
RGBrgb(33, 64, 12)
HSLhsl(96, 68%, 15%)
HSVhsv(96, 81%, 25%)
CMYKcmyk(48.4%, 0%, 81.2%, 74.9%)
CIE-LABlab(23.73, -22.00, 26.75)
CIE-LCHlch(23.73, 34.64, 129.44°)
OKLaboklab(33.51% -0.0613 0.0604)
OKLCHoklch(33.51% 0.086 135.4)
XYZxyz(2.5269, 4.0165, 0.9899)
Luminance0.0402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21400C #2B0C40
analogous
#3B400C #21400C #0C4011
triadic
#21400C #0C2140 #400C21
tetradic
#21400C #0C3B40 #2B0C40 #40110C
square
#21400C #0C3B40 #2B0C40 #40110C
split-complementary
#21400C #110C40 #400C3B
monochromatic
#0D1A05 #0D1A05 #21400C #3C7416 #56A71F

Accessibility & contrast

On white

11.64
#21400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21400C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21400C#FFFFFF#000000##FFFFFF
##21400C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A04
Deuteranopia (green-blind)
#3E3811
Tritanopia (blue-blind)
#203D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21400c;
/* rgb */ color: rgb(33, 64, 12);
/* oklch */ color: oklch(33.5% 0.086 135.4);
Tailwind
colors: {
  custom: {
    50: '#60754e',
    500: '#21400c',
    950: '#000000',
  },
}
SCSS
$custom: #21400c;
$custom-light: #60754e;
$custom-dark: #000000;
JSON
{
  "hex": "#21400c",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 95.769,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.08609,
    "h": 135.4
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#21400C
secondary
#5C2C7C
accent
#3DEBA5
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #21400C

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

Preview Lab → · Contrast checker → · Palette generator →

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