#20310C#20310C

#20310C is a dark, moderate yellow-green. Relative luminance 0.025; OKLCH L 28.9% C 0.063 H 130.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#20310C
RGBrgb(32, 49, 12)
HSLhsl(88, 61%, 12%)
HSVhsv(88, 76%, 19%)
CMYKcmyk(34.7%, 0%, 75.5%, 80.8%)
CIE-LABlab(18.05, -14.50, 20.50)
CIE-LCHlch(18.05, 25.11, 125.28°)
OKLaboklab(28.86% -0.0408 0.0479)
OKLCHoklch(28.86% 0.063 130.5)
XYZxyz(1.7603, 2.5302, 0.7434)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20310C #1D0C31
analogous
#31300C #20310C #0D310C
triadic
#20310C #0C2031 #310C20
tetradic
#20310C #0C3130 #1D0C31 #310C0D
square
#20310C #0C3130 #1D0C31 #310C0D
split-complementary
#20310C #0C0D31 #300C31
monochromatic
#101906 #101906 #20310C #406218 #609324

Accessibility & contrast

On white

13.94
#20310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#20310C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20310C
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20310C#FFFFFF#000000##FFFFFF
##20310C1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D08
Deuteranopia (green-blind)
#312C0F
Tritanopia (blue-blind)
#212F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20310c;
/* rgb */ color: rgb(32, 49, 12);
/* oklch */ color: oklch(28.9% 0.063 130.5);
Tailwind
colors: {
  custom: {
    50: '#5d694d',
    500: '#20310c',
    950: '#000000',
  },
}
SCSS
$custom: #20310c;
$custom-light: #5d694d;
$custom-dark: #000000;
JSON
{
  "hex": "#20310c",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 87.568,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.28864,
    "c": 0.0629,
    "h": 130.5
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#20310C
secondary
#4A2C6D
accent
#44E48D
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #20310C

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

Preview Lab → · Contrast checker → · Palette generator →

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