#313704#313704

#313704 is a dark, moderate yellow. Relative luminance 0.034; OKLCH L 32.0% C 0.070 H 116.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#313704
RGBrgb(49, 55, 4)
HSLhsl(67, 86%, 12%)
HSVhsv(67, 93%, 22%)
CMYKcmyk(10.9%, 0%, 92.7%, 78.4%)
CIE-LABlab(21.56, -10.18, 28.16)
CIE-LCHlch(21.56, 29.94, 109.88°)
OKLaboklab(32.03% -0.0311 0.0625)
OKLCHoklch(32.03% 0.07 116.5)
XYZxyz(2.6548, 3.3941, 0.6301)
Luminance0.0339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313704 #0A0437
analogous
#372404 #313704 #183704
triadic
#313704 #043137 #370431
tetradic
#313704 #043724 #0A0437 #370418
square
#313704 #043724 #0A0437 #370418
split-complementary
#313704 #041837 #240437
monochromatic
#191D02 #191D02 #313704 #647008 #97A90C

Accessibility & contrast

On white

12.51
#313704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#313704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313704
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313704#FFFFFF#000000##FFFFFF
##3137041.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3300
Deuteranopia (green-blind)
#3B3408
Tritanopia (blue-blind)
#35332E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313704;
/* rgb */ color: rgb(49, 55, 4);
/* oklch */ color: oklch(32.0% 0.070 116.5);
Tailwind
colors: {
  custom: {
    50: '#6b6d4a',
    500: '#313704',
    950: '#000000',
  },
}
SCSS
$custom: #313704;
$custom-light: #6b6d4a;
$custom-dark: #000000;
JSON
{
  "hex": "#313704",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 4
  },
  "hsl": {
    "h": 67.059,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.06982,
    "h": 116.5
  },
  "luminance": 0.03394
}

Semantic roles & 50–950 ramp

primary
#313704
secondary
#291E79
accent
#2BFD44
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313704

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

Preview Lab → · Contrast checker → · Palette generator →

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