#31510E#31510E

#31510E is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.100 H 132.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#31510E
RGBrgb(49, 81, 14)
HSLhsl(89, 71%, 19%)
HSVhsv(89, 83%, 32%)
CMYKcmyk(39.5%, 0%, 82.7%, 68.2%)
CIE-LABlab(30.81, -23.75, 33.21)
CIE-LCHlch(30.81, 40.83, 125.57°)
OKLaboklab(39.55% -0.0671 0.074)
OKLCHoklch(39.55% 0.1 132.2)
XYZxyz(4.2883, 6.5694, 1.4574)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31510E #2E0E51
analogous
#514F0E #31510E #0F510E
triadic
#31510E #0E3151 #510E31
tetradic
#31510E #0E514F #2E0E51 #510E0F
square
#31510E #0E514F #2E0E51 #510E0F
split-complementary
#31510E #0E0F51 #4F0E51
monochromatic
#101A05 #111D05 #31510E #518517 #70B920

Accessibility & contrast

On white

9.08
#31510E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31510E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31510E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31510E#FFFFFF#000000##FFFFFF
##31510E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A02
Deuteranopia (green-blind)
#504815
Tritanopia (blue-blind)
#324D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31510e;
/* rgb */ color: rgb(49, 81, 14);
/* oklch */ color: oklch(39.6% 0.100 132.2);
Tailwind
colors: {
  custom: {
    50: '#6d8252',
    500: '#31510e',
    950: '#000000',
  },
}
SCSS
$custom: #31510e;
$custom-light: #6d8252;
$custom-dark: #000000;
JSON
{
  "hex": "#31510e",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 88.657,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39552,
    "c": 0.09985,
    "h": 132.2
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#31510E
secondary
#5B2F8C
accent
#3AED90
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31510E

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

Preview Lab → · Contrast checker → · Palette generator →

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