#313808#313808

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

Color values

HEX#313808
RGBrgb(49, 56, 8)
HSLhsl(69, 75%, 13%)
HSVhsv(69, 86%, 22%)
CMYKcmyk(12.5%, 0%, 85.7%, 78%)
CIE-LABlab(21.94, -10.51, 26.94)
CIE-LCHlch(21.94, 28.91, 111.32°)
OKLaboklab(32.35% -0.0315 0.0601)
OKLCHoklch(32.35% 0.068 117.7)
XYZxyz(2.7247, 3.4989, 0.7615)
Luminance0.0350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313808 #0F0838
analogous
#382708 #313808 #193808
triadic
#313808 #083138 #380831
tetradic
#313808 #083827 #0F0838 #380819
square
#313808 #083827 #0F0838 #380819
split-complementary
#313808 #081938 #270838
monochromatic
#171B04 #171B04 #313808 #606E10 #8FA317

Accessibility & contrast

On white

12.35
#313808 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313808
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313808#FFFFFF#000000##FFFFFF
##3138081.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3402
Deuteranopia (green-blind)
#3C350C
Tritanopia (blue-blind)
#35342F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #313808;
/* rgb */ color: rgb(49, 56, 8);
/* oklch */ color: oklch(32.3% 0.068 117.7);
Tailwind
colors: {
  custom: {
    50: '#6b6e4c',
    500: '#313808',
    950: '#000000',
  },
}
SCSS
$custom: #313808;
$custom-light: #6b6e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#313808",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 8
  },
  "hsl": {
    "h": 68.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.32348,
    "c": 0.06785,
    "h": 117.7
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#313808
secondary
#312577
accent
#36F252
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313808

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

Preview Lab → · Contrast checker → · Palette generator →

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