#313804#313804

#313804 is a dark, moderate yellow. Relative luminance 0.035; OKLCH L 32.3% C 0.071 H 117.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#313804
RGBrgb(49, 56, 4)
HSLhsl(68, 87%, 12%)
HSVhsv(68, 93%, 22%)
CMYKcmyk(12.5%, 0%, 92.9%, 78%)
CIE-LABlab(21.91, -10.78, 28.53)
CIE-LCHlch(21.91, 30.50, 110.71°)
OKLaboklab(32.31% -0.0328 0.0631)
OKLCHoklch(32.31% 0.071 117.5)
XYZxyz(2.7028, 3.4901, 0.6461)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313804 #0B0438
analogous
#382504 #313804 #173804
triadic
#313804 #043138 #380431
tetradic
#313804 #043825 #0B0438 #380417
square
#313804 #043825 #0B0438 #380417
split-complementary
#313804 #041738 #250438
monochromatic
#191D02 #191D02 #313804 #637108 #95AA0C

Accessibility & contrast

On white

12.37
#313804 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#313804 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313804
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313804#FFFFFF#000000##FFFFFF
##3138041.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#3C3508
Tritanopia (blue-blind)
#35342E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313804;
/* rgb */ color: rgb(49, 56, 4);
/* oklch */ color: oklch(32.3% 0.071 117.5);
Tailwind
colors: {
  custom: {
    50: '#6b6e4a',
    500: '#313804',
    950: '#000000',
  },
}
SCSS
$custom: #313804;
$custom-light: #6b6e4a;
$custom-dark: #000000;
JSON
{
  "hex": "#313804",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 4
  },
  "hsl": {
    "h": 68.077,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.32312,
    "c": 0.07115,
    "h": 117.5
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#313804
secondary
#2A1E7A
accent
#2BFD47
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313804

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

Preview Lab → · Contrast checker → · Palette generator →

#313804 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva