#21340C#21340C

#21340C is a dark, moderate yellow-green. Relative luminance 0.028; OKLCH L 29.9% C 0.067 H 131.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#21340C
RGBrgb(33, 52, 12)
HSLhsl(89, 63%, 13%)
HSVhsv(89, 77%, 20%)
CMYKcmyk(36.5%, 0%, 76.9%, 79.6%)
CIE-LABlab(19.25, -15.73, 21.91)
CIE-LCHlch(19.25, 26.97, 125.66°)
OKLaboklab(29.85% -0.0442 0.0506)
OKLCHoklch(29.85% 0.067 131.2)
XYZxyz(1.9215, 2.8058, 0.7881)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21340C #1F0C34
analogous
#34330C #21340C #0D340C
triadic
#21340C #0C2134 #340C21
tetradic
#21340C #0C3433 #1F0C34 #340C0D
square
#21340C #0C3433 #1F0C34 #340C0D
split-complementary
#21340C #0C0D34 #330C34
monochromatic
#101906 #101906 #21340C #416617 #609723

Accessibility & contrast

On white

13.45
#21340C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21340C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21340C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21340C#FFFFFF#000000##FFFFFF
##21340C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373007
Deuteranopia (green-blind)
#342E0F
Tritanopia (blue-blind)
#22322C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21340c;
/* rgb */ color: rgb(33, 52, 12);
/* oklch */ color: oklch(29.9% 0.067 131.2);
Tailwind
colors: {
  custom: {
    50: '#5e6b4d',
    500: '#21340c',
    950: '#000000',
  },
}
SCSS
$custom: #21340c;
$custom-light: #5e6b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#21340c",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 12
  },
  "hsl": {
    "h": 88.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.29853,
    "c": 0.06723,
    "h": 131.2
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#21340C
secondary
#4C2C70
accent
#42E690
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #21340C

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

Preview Lab → · Contrast checker → · Palette generator →

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