#213812#213812

#213812 is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.1% C 0.068 H 134.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#213812
RGBrgb(33, 56, 18)
HSLhsl(96, 51%, 15%)
HSVhsv(96, 68%, 22%)
CMYKcmyk(41.1%, 0%, 67.9%, 78%)
CIE-LABlab(20.81, -17.24, 20.55)
CIE-LCHlch(20.81, 26.83, 130.00°)
OKLaboklab(31.15% -0.0478 0.0482)
OKLCHoklch(31.15% 0.068 134.8)
XYZxyz(2.1505, 3.1953, 1.0756)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213812 #291238
analogous
#343812 #213812 #123816
triadic
#213812 #122138 #381221
tetradic
#213812 #123438 #291238 #381612
square
#213812 #123438 #291238 #381612
split-complementary
#213812 #161238 #381234
monochromatic
#0E1707 #0E1707 #213812 #3C6621 #589530

Accessibility & contrast

On white

12.81
#213812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#213812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213812
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213812#FFFFFF#000000##FFFFFF
##2138121.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A330E
Deuteranopia (green-blind)
#373115
Tritanopia (blue-blind)
#213630
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #213812;
/* rgb */ color: rgb(33, 56, 18);
/* oklch */ color: oklch(31.1% 0.068 134.8);
Tailwind
colors: {
  custom: {
    50: '#5e6e51',
    500: '#213812',
    950: '#000000',
  },
}
SCSS
$custom: #213812;
$custom-light: #5e6e51;
$custom-dark: #000000;
JSON
{
  "hex": "#213812",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 96.316,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.06789,
    "h": 134.8
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#213812
secondary
#593571
accent
#4DDBA3
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040702
muted
#797A78

Preview Lab

Preview with #213812

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

Preview Lab → · Contrast checker → · Palette generator →

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