#31480C#31480C

#31480C is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.088 H 128.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#31480C
RGBrgb(49, 72, 12)
HSLhsl(83, 71%, 16%)
HSVhsv(83, 83%, 28%)
CMYKcmyk(31.9%, 0%, 83.3%, 71.8%)
CIE-LABlab(27.61, -19.29, 30.92)
CIE-LCHlch(27.61, 36.44, 121.96°)
OKLaboklab(36.95% -0.0552 0.0688)
OKLCHoklch(36.95% 0.088 128.7)
XYZxyz(3.6503, 5.3141, 1.1812)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31480C #230C48
analogous
#48410C #31480C #13480C
triadic
#31480C #0C3148 #480C31
tetradic
#31480C #0C4841 #230C48 #480C13
square
#31480C #0C4841 #230C48 #480C13
split-complementary
#31480C #0C1348 #410C48
monochromatic
#121A04 #121A04 #31480C #557C15 #78B11D

Accessibility & contrast

On white

10.18
#31480C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31480C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31480C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31480C#FFFFFF#000000##FFFFFF
##31480C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4202
Deuteranopia (green-blind)
#494112
Tritanopia (blue-blind)
#33443D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31480c;
/* rgb */ color: rgb(49, 72, 12);
/* oklch */ color: oklch(36.9% 0.088 128.7);
Tailwind
colors: {
  custom: {
    50: '#6c7b50',
    500: '#31480c',
    950: '#000000',
  },
}
SCSS
$custom: #31480c;
$custom-light: #6c7b50;
$custom-dark: #000000;
JSON
{
  "hex": "#31480c",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 12
  },
  "hsl": {
    "h": 83,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.36945,
    "c": 0.08817,
    "h": 128.7
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#31480C
secondary
#4E2C84
accent
#3AEE7F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31480C

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

Preview Lab → · Contrast checker → · Palette generator →

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