#313708#313708

#313708 is a dark, moderate yellow. Relative luminance 0.034; OKLCH L 32.1% C 0.066 H 116.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#313708
RGBrgb(49, 55, 8)
HSLhsl(68, 75%, 12%)
HSVhsv(68, 85%, 22%)
CMYKcmyk(10.9%, 0%, 85.5%, 78.4%)
CIE-LABlab(21.59, -9.91, 26.56)
CIE-LCHlch(21.59, 28.35, 110.45°)
OKLaboklab(32.07% -0.0298 0.0594)
OKLCHoklch(32.07% 0.066 116.7)
XYZxyz(2.6767, 3.4029, 0.7455)
Luminance0.0340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313708 #0E0837
analogous
#372608 #313708 #193708
triadic
#313708 #083137 #370831
tetradic
#313708 #083726 #0E0837 #370819
square
#313708 #083726 #0E0837 #370819
split-complementary
#313708 #081937 #260837
monochromatic
#181B04 #181B04 #313708 #616C10 #90A218

Accessibility & contrast

On white

12.50
#313708 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313708
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313708#FFFFFF#000000##FFFFFF
##3137081.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313708;
/* rgb */ color: rgb(49, 55, 8);
/* oklch */ color: oklch(32.1% 0.066 116.7);
Tailwind
colors: {
  custom: {
    50: '#6b6d4c',
    500: '#313708',
    950: '#000000',
  },
}
SCSS
$custom: #313708;
$custom-light: #6b6d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#313708",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 8
  },
  "hsl": {
    "h": 67.66,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.32066,
    "c": 0.06646,
    "h": 116.7
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#313708
secondary
#2F2576
accent
#37F14E
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313708

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

Preview Lab → · Contrast checker → · Palette generator →

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