#313A12#313A12

#313A12 is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 33.0% C 0.062 H 120.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#313A12
RGBrgb(49, 58, 18)
HSLhsl(74, 53%, 15%)
HSVhsv(74, 69%, 23%)
CMYKcmyk(15.5%, 0%, 69%, 77.3%)
CIE-LABlab(22.73, -10.91, 23.05)
CIE-LCHlch(22.73, 25.50, 115.34°)
OKLaboklab(33.02% -0.0315 0.0532)
OKLCHoklch(33.02% 0.062 120.6)
XYZxyz(2.8889, 3.7228, 1.1385)
Luminance0.0372 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A12 #1B123A
analogous
#3A2F12 #313A12 #1D3A12
triadic
#313A12 #12313A #3A1231
tetradic
#313A12 #123A2F #1B123A #3A121D
square
#313A12 #123A2F #1B123A #3A121D
split-complementary
#313A12 #121D3A #2F123A
monochromatic
#141707 #141707 #313A12 #586920 #80972F

Accessibility & contrast

On white

12.04
#313A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A12
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A12#FFFFFF#000000##FFFFFF
##313A121.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E360E
Deuteranopia (green-blind)
#3D3615
Tritanopia (blue-blind)
#343731
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a12;
/* rgb */ color: rgb(49, 58, 18);
/* oklch */ color: oklch(33.0% 0.062 120.6);
Tailwind
colors: {
  custom: {
    50: '#6a7052',
    500: '#313a12',
    950: '#000000',
  },
}
SCSS
$custom: #313a12;
$custom-light: #6a7052;
$custom-dark: #000000;
JSON
{
  "hex": "#313a12",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 73.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33015,
    "c": 0.06184,
    "h": 120.6
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#313A12
secondary
#433573
accent
#4CDC6C
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #313A12

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

Preview Lab → · Contrast checker → · Palette generator →

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