#31420C#31420C

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

Color values

HEX#31420C
RGBrgb(49, 66, 12)
HSLhsl(79, 69%, 15%)
HSVhsv(79, 82%, 26%)
CMYKcmyk(25.8%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.49, -16.03, 28.86)
CIE-LCHlch(25.49, 33.01, 119.06°)
OKLaboklab(35.22% -0.0463 0.0644)
OKLCHoklch(35.22% 0.079 125.7)
XYZxyz(3.2812, 4.5759, 1.0581)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420C #1D0C42
analogous
#42380C #31420C #16420C
triadic
#31420C #0C3142 #420C31
tetradic
#31420C #0C4238 #1D0C42 #420C16
square
#31420C #0C4238 #1D0C42 #420C16
split-complementary
#31420C #0C1642 #380C42
monochromatic
#131A05 #131A05 #31420C #577615 #7EAA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31420C#FFFFFF#000000##FFFFFF
##31420C1.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)
#463D04
Deuteranopia (green-blind)
#443C11
Tritanopia (blue-blind)
#343E38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420c;
/* rgb */ color: rgb(49, 66, 12);
/* oklch */ color: oklch(35.2% 0.079 125.7);
Tailwind
colors: {
  custom: {
    50: '#6b764f',
    500: '#31420c',
    950: '#000000',
  },
}
SCSS
$custom: #31420c;
$custom-light: #6b764f;
$custom-dark: #000000;
JSON
{
  "hex": "#31420c",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 78.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.07935,
    "h": 125.7
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#31420C
secondary
#462C7E
accent
#3CEC73
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420C

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

Preview Lab → · Contrast checker → · Palette generator →

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