#31420E#31420E

#31420E is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.2% C 0.078 H 126.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#31420E
RGBrgb(49, 66, 14)
HSLhsl(80, 65%, 16%)
HSVhsv(80, 79%, 26%)
CMYKcmyk(25.8%, 0%, 78.8%, 74.1%)
CIE-LABlab(25.51, -15.89, 27.99)
CIE-LCHlch(25.51, 32.18, 119.58°)
OKLaboklab(35.24% -0.0457 0.063)
OKLCHoklch(35.24% 0.078 126)
XYZxyz(3.2941, 4.5811, 1.1261)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420E #1F0E42
analogous
#42390E #31420E #17420E
triadic
#31420E #0E3142 #420E31
tetradic
#31420E #0E4239 #1F0E42 #420E17
square
#31420E #0E4239 #1F0E42 #420E17
split-complementary
#31420E #0E1742 #390E42
monochromatic
#131905 #131905 #31420E #567419 #7CA723

Accessibility & contrast

On white

10.96
#31420E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31420E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31420E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31420E#FFFFFF#000000##FFFFFF
##31420E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D06
Deuteranopia (green-blind)
#443C12
Tritanopia (blue-blind)
#333F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420e;
/* rgb */ color: rgb(49, 66, 14);
/* oklch */ color: oklch(35.2% 0.078 126.0);
Tailwind
colors: {
  custom: {
    50: '#6b7650',
    500: '#31420e',
    950: '#000000',
  },
}
SCSS
$custom: #31420e;
$custom-light: #6b7650;
$custom-dark: #000000;
JSON
{
  "hex": "#31420e",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 14
  },
  "hsl": {
    "h": 79.615,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.35241,
    "c": 0.07782,
    "h": 126
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#31420E
secondary
#482F7D
accent
#40E877
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420E

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

Preview Lab → · Contrast checker → · Palette generator →

#31420E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva