#313D12#313D12

#313D12 is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.9% C 0.067 H 123.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#313D12
RGBrgb(49, 61, 18)
HSLhsl(77, 54%, 15%)
HSVhsv(77, 70%, 24%)
CMYKcmyk(19.7%, 0%, 70.5%, 76.1%)
CIE-LABlab(23.78, -12.69, 24.20)
CIE-LCHlch(23.78, 27.33, 117.66°)
OKLaboklab(33.86% -0.0364 0.0557)
OKLCHoklch(33.86% 0.067 123.2)
XYZxyz(3.0446, 4.0341, 1.1904)
Luminance0.0403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D12 #1E123D
analogous
#3D3312 #313D12 #1B3D12
triadic
#313D12 #12313D #3D1231
tetradic
#313D12 #123D33 #1E123D #3D121B
square
#313D12 #123D33 #1E123D #3D121B
split-complementary
#313D12 #121B3D #33123D
monochromatic
#131807 #131807 #313D12 #576C20 #7D9C2E

Accessibility & contrast

On white

11.62
#313D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D12
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D12#FFFFFF#000000##FFFFFF
##313D121.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41390D
Deuteranopia (green-blind)
#3F3915
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313d12;
/* rgb */ color: rgb(49, 61, 18);
/* oklch */ color: oklch(33.9% 0.067 123.2);
Tailwind
colors: {
  custom: {
    50: '#6a7252',
    500: '#313d12',
    950: '#000000',
  },
}
SCSS
$custom: #313d12;
$custom-light: #6a7252;
$custom-dark: #000000;
JSON
{
  "hex": "#313d12",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 18
  },
  "hsl": {
    "h": 76.744,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.33861,
    "c": 0.06654,
    "h": 123.2
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#313D12
secondary
#473576
accent
#4ADE73
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313D12

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

Preview Lab → · Contrast checker → · Palette generator →

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