#313406#313406

#313406 is a dark, moderate yellow. Relative luminance 0.031; OKLCH L 31.2% C 0.064 H 113.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#313406
RGBrgb(49, 52, 6)
HSLhsl(64, 79%, 11%)
HSVhsv(64, 88%, 20%)
CMYKcmyk(5.8%, 0%, 88.5%, 79.6%)
CIE-LABlab(20.53, -8.20, 26.21)
CIE-LCHlch(20.53, 27.47, 107.37°)
OKLaboklab(31.21% -0.0254 0.0589)
OKLCHoklch(31.21% 0.064 113.3)
XYZxyz(2.5276, 3.1222, 0.6417)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313406 #090634
analogous
#342006 #313406 #1A3406
triadic
#313406 #063134 #340631
tetradic
#313406 #063420 #090634 #34061A
square
#313406 #063420 #090634 #34061A
split-complementary
#313406 #061A34 #200634
monochromatic
#1A1B03 #1A1B03 #313406 #656B0C #98A213

Accessibility & contrast

On white

12.93
#313406 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313406 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313406
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313406#FFFFFF#000000##FFFFFF
##3134061.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393100
Deuteranopia (green-blind)
#393209
Tritanopia (blue-blind)
#35302B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313406;
/* rgb */ color: rgb(49, 52, 6);
/* oklch */ color: oklch(31.2% 0.064 113.3);
Tailwind
colors: {
  custom: {
    50: '#6b6b4a',
    500: '#313406',
    950: '#000000',
  },
}
SCSS
$custom: #313406;
$custom-light: #6b6b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#313406",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 6
  },
  "hsl": {
    "h": 63.913,
    "s": 79.31,
    "l": 11.373
  },
  "oklch": {
    "l": 0.31207,
    "c": 0.06412,
    "h": 113.3
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#313406
secondary
#272174
accent
#32F63F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313406

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

Preview Lab → · Contrast checker → · Palette generator →

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