#31510C#31510C

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

Color values

HEX#31510C
RGBrgb(49, 81, 12)
HSLhsl(88, 74%, 18%)
HSVhsv(88, 85%, 32%)
CMYKcmyk(39.5%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.79, -23.88, 33.94)
CIE-LCHlch(30.79, 41.50, 125.12°)
OKLaboklab(39.54% -0.0676 0.0751)
OKLCHoklch(39.54% 0.101 132)
XYZxyz(4.2754, 6.5642, 1.3895)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31510C #2C0C51
analogous
#514E0C #31510C #0E510C
triadic
#31510C #0C3151 #510C31
tetradic
#31510C #0C514E #2C0C51 #510C0E
square
#31510C #0C514E #2C0C51 #510C0E
split-complementary
#31510C #0C0E51 #4E0C51
monochromatic
#101B04 #111C04 #31510C #518614 #71BC1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31510C#FFFFFF#000000##FFFFFF
##31510C1.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)
#554A00
Deuteranopia (green-blind)
#514813
Tritanopia (blue-blind)
#324D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31510c;
/* rgb */ color: rgb(49, 81, 12);
/* oklch */ color: oklch(39.5% 0.101 132.0);
Tailwind
colors: {
  custom: {
    50: '#6d8251',
    500: '#31510c',
    950: '#000000',
  },
}
SCSS
$custom: #31510c;
$custom-light: #6d8251;
$custom-dark: #000000;
JSON
{
  "hex": "#31510c",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 87.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39538,
    "c": 0.10105,
    "h": 132
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#31510C
secondary
#592C8C
accent
#37F18D
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31510C

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

Preview Lab → · Contrast checker → · Palette generator →

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