#314D12#314D12

#314D12 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.091 H 131.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#314D12
RGBrgb(49, 77, 18)
HSLhsl(88, 62%, 19%)
HSVhsv(88, 77%, 30%)
CMYKcmyk(36.4%, 0%, 76.6%, 69.8%)
CIE-LABlab(29.42, -21.44, 30.17)
CIE-LCHlch(29.42, 37.02, 125.40°)
OKLaboklab(38.43% -0.0605 0.0683)
OKLCHoklch(38.43% 0.091 131.5)
XYZxyz(4.0296, 6.0042, 1.5188)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D12 #2E124D
analogous
#4D4B12 #314D12 #134D12
triadic
#314D12 #12314D #4D1231
tetradic
#314D12 #124D4B #2E124D #4D1213
square
#314D12 #124D4B #2E124D #4D1213
split-complementary
#314D12 #12134D #4B124D
monochromatic
#101906 #111B06 #314D12 #517F1E #70B029

Accessibility & contrast

On white

9.54
#314D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#314D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314D12
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314D12#FFFFFF#000000##FFFFFF
##314D121.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#324A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #314d12;
/* rgb */ color: rgb(49, 77, 18);
/* oklch */ color: oklch(38.4% 0.091 131.5);
Tailwind
colors: {
  custom: {
    50: '#6c7f54',
    500: '#314d12',
    950: '#000000',
  },
}
SCSS
$custom: #314d12;
$custom-light: #6c7f54;
$custom-dark: #000000;
JSON
{
  "hex": "#314d12",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 88.475,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38434,
    "c": 0.09121,
    "h": 131.5
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#314D12
secondary
#5B3586
accent
#43E590
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #314D12

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

Preview Lab → · Contrast checker → · Palette generator →

#314D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva