#314F12#314F12

#314F12 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.094 H 132.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#314F12
RGBrgb(49, 79, 18)
HSLhsl(90, 63%, 19%)
HSVhsv(90, 77%, 31%)
CMYKcmyk(38%, 0%, 77.2%, 69%)
CIE-LABlab(30.13, -22.46, 30.89)
CIE-LCHlch(30.13, 38.19, 126.02°)
OKLaboklab(39.01% -0.0632 0.0698)
OKLCHoklch(39.01% 0.094 132.2)
XYZxyz(4.1717, 6.2884, 1.5661)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F12 #30124F
analogous
#4F4F12 #314F12 #134F12
triadic
#314F12 #12314F #4F1231
tetradic
#314F12 #124F4F #30124F #4F1213
square
#314F12 #124F4F #30124F #4F1213
split-complementary
#314F12 #12134F #4F124F
monochromatic
#0F1906 #121D07 #314F12 #50811D #6FB329

Accessibility & contrast

On white

9.30
#314F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#314F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F12
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F12#FFFFFF#000000##FFFFFF
##314F121.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534808
Deuteranopia (green-blind)
#4F4618
Tritanopia (blue-blind)
#324B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #314f12;
/* rgb */ color: rgb(49, 79, 18);
/* oklch */ color: oklch(39.0% 0.094 132.2);
Tailwind
colors: {
  custom: {
    50: '#6c8054',
    500: '#314f12',
    950: '#000000',
  },
}
SCSS
$custom: #314f12;
$custom-light: #6c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#314f12",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 89.508,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39009,
    "c": 0.09418,
    "h": 132.2
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#314F12
secondary
#5E3588
accent
#42E693
background
#F6F7F5
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #314F12

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

Preview Lab → · Contrast checker → · Palette generator →

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