#313E12#313E12

#313E12 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.1% C 0.068 H 123.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#313E12
RGBrgb(49, 62, 18)
HSLhsl(78, 55%, 16%)
HSVhsv(78, 71%, 24%)
CMYKcmyk(21%, 0%, 71%, 75.7%)
CIE-LABlab(24.14, -13.27, 24.59)
CIE-LCHlch(24.14, 27.94, 118.36°)
OKLaboklab(34.14% -0.038 0.0565)
OKLCHoklch(34.14% 0.068 123.9)
XYZxyz(3.0984, 4.1419, 1.2084)
Luminance0.0414 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E12 #1F123E
analogous
#3E3512 #313E12 #1B3E12
triadic
#313E12 #12313E #3E1231
tetradic
#313E12 #123E35 #1F123E #3E121B
square
#313E12 #123E35 #1F123E #3E121B
split-complementary
#313E12 #121B3E #35123E
monochromatic
#131807 #131807 #313E12 #566D20 #7C9D2E

Accessibility & contrast

On white

11.49
#313E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E12
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E12#FFFFFF#000000##FFFFFF
##313E121.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0D
Deuteranopia (green-blind)
#403915
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e12;
/* rgb */ color: rgb(49, 62, 18);
/* oklch */ color: oklch(34.1% 0.068 123.9);
Tailwind
colors: {
  custom: {
    50: '#6b7352',
    500: '#313e12',
    950: '#000000',
  },
}
SCSS
$custom: #313e12;
$custom-light: #6b7352;
$custom-dark: #000000;
JSON
{
  "hex": "#313e12",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 18
  },
  "hsl": {
    "h": 77.727,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.34144,
    "c": 0.06812,
    "h": 123.9
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#313E12
secondary
#483577
accent
#49DE75
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313E12

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

Preview Lab → · Contrast checker → · Palette generator →

#313E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva