#313608#313608

#313608 is a dark, moderate yellow. Relative luminance 0.033; OKLCH L 31.8% C 0.065 H 115.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#313608
RGBrgb(49, 54, 8)
HSLhsl(67, 74%, 12%)
HSVhsv(67, 85%, 21%)
CMYKcmyk(9.3%, 0%, 85.2%, 78.8%)
CIE-LABlab(21.24, -9.29, 26.18)
CIE-LCHlch(21.24, 27.78, 109.54°)
OKLaboklab(31.79% -0.0282 0.0587)
OKLCHoklch(31.79% 0.065 115.6)
XYZxyz(2.6297, 3.3089, 0.7298)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313608 #0D0836
analogous
#362408 #313608 #1A3608
triadic
#313608 #083136 #360831
tetradic
#313608 #083624 #0D0836 #36081A
square
#313608 #083624 #0D0836 #36081A
split-complementary
#313608 #081A36 #240836
monochromatic
#181B04 #181B04 #313608 #616B10 #92A118

Accessibility & contrast

On white

12.64
#313608 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#313608 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313608
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313608#FFFFFF#000000##FFFFFF
##3136081.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3302
Deuteranopia (green-blind)
#3A330C
Tritanopia (blue-blind)
#35322D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313608;
/* rgb */ color: rgb(49, 54, 8);
/* oklch */ color: oklch(31.8% 0.065 115.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c4b',
    500: '#313608',
    950: '#000000',
  },
}
SCSS
$custom: #313608;
$custom-light: #6b6c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313608",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 8
  },
  "hsl": {
    "h": 66.522,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.31786,
    "c": 0.06508,
    "h": 115.6
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#313608
secondary
#2E2575
accent
#37F14B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313608

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

Preview Lab → · Contrast checker → · Palette generator →

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