#31470C#31470C

#31470C is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.087 H 128.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#31470C
RGBrgb(49, 71, 12)
HSLhsl(82, 71%, 16%)
HSVhsv(82, 83%, 28%)
CMYKcmyk(31%, 0%, 83.1%, 72.2%)
CIE-LABlab(27.26, -18.76, 30.58)
CIE-LCHlch(27.26, 35.87, 121.52°)
OKLaboklab(36.66% -0.0537 0.0681)
OKLCHoklch(36.66% 0.087 128.3)
XYZxyz(3.5862, 5.1859, 1.1598)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31470C #220C47
analogous
#47400C #31470C #14470C
triadic
#31470C #0C3147 #470C31
tetradic
#31470C #0C4740 #220C47 #470C14
square
#31470C #0C4740 #220C47 #470C14
split-complementary
#31470C #0C1447 #400C47
monochromatic
#121A04 #121A04 #31470C #557B15 #79B01E

Accessibility & contrast

On white

10.31
#31470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#31470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31470C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31470C#FFFFFF#000000##FFFFFF
##31470C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4102
Deuteranopia (green-blind)
#484012
Tritanopia (blue-blind)
#33433C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31470c;
/* rgb */ color: rgb(49, 71, 12);
/* oklch */ color: oklch(36.7% 0.087 128.3);
Tailwind
colors: {
  custom: {
    50: '#6c7a50',
    500: '#31470c',
    950: '#000000',
  },
}
SCSS
$custom: #31470c;
$custom-light: #6c7a50;
$custom-dark: #000000;
JSON
{
  "hex": "#31470c",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 82.373,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.36657,
    "c": 0.08671,
    "h": 128.3
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#31470C
secondary
#4C2C83
accent
#3AEE7D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31470C

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

Preview Lab → · Contrast checker → · Palette generator →

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