#31500E#31500E

#31500E is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.098 H 131.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#31500E
RGBrgb(49, 80, 14)
HSLhsl(88, 70%, 18%)
HSVhsv(88, 83%, 31%)
CMYKcmyk(38.8%, 0%, 82.5%, 68.6%)
CIE-LABlab(30.45, -23.25, 32.87)
CIE-LCHlch(30.45, 40.27, 125.28°)
OKLaboklab(39.26% -0.0658 0.0732)
OKLCHoklch(39.26% 0.098 131.9)
XYZxyz(4.2145, 6.4218, 1.4329)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31500E #2D0E50
analogous
#504E0E #31500E #10500E
triadic
#31500E #0E3150 #500E31
tetradic
#31500E #0E504E #2D0E50 #500E10
square
#31500E #0E504E #2D0E50 #500E10
split-complementary
#31500E #0E1050 #4E0E50
monochromatic
#101A05 #111C05 #31500E #518417 #71B820

Accessibility & contrast

On white

9.19
#31500E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31500E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31500E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31500E#FFFFFF#000000##FFFFFF
##31500E1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544902
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#324C43
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31500e;
/* rgb */ color: rgb(49, 80, 14);
/* oklch */ color: oklch(39.3% 0.098 131.9);
Tailwind
colors: {
  custom: {
    50: '#6c8152',
    500: '#31500e',
    950: '#000000',
  },
}
SCSS
$custom: #31500e;
$custom-light: #6c8152;
$custom-dark: #000000;
JSON
{
  "hex": "#31500e",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 14
  },
  "hsl": {
    "h": 88.182,
    "s": 70.213,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39264,
    "c": 0.09843,
    "h": 131.9
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#31500E
secondary
#5A2F8B
accent
#3BED8F
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31500E

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

Preview Lab → · Contrast checker → · Palette generator →

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