#313806#313806

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

Color values

HEX#313806
RGBrgb(49, 56, 6)
HSLhsl(68, 81%, 12%)
HSVhsv(68, 89%, 22%)
CMYKcmyk(12.5%, 0%, 89.3%, 78%)
CIE-LABlab(21.92, -10.65, 27.73)
CIE-LCHlch(21.92, 29.71, 111.00°)
OKLaboklab(32.33% -0.0321 0.0616)
OKLCHoklch(32.33% 0.069 117.6)
XYZxyz(2.7137, 3.4945, 0.7038)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313806 #0D0638
analogous
#382606 #313806 #183806
triadic
#313806 #063138 #380631
tetradic
#313806 #063826 #0D0638 #380618
square
#313806 #063826 #0D0638 #380618
split-complementary
#313806 #061838 #260638
monochromatic
#181C03 #181C03 #313806 #616F0C #92A712

Accessibility & contrast

On white

12.36
#313806 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313806
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313806#FFFFFF#000000##FFFFFF
##3138061.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#3C350A
Tritanopia (blue-blind)
#35342F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313806;
/* rgb */ color: rgb(49, 56, 6);
/* oklch */ color: oklch(32.3% 0.069 117.6);
Tailwind
colors: {
  custom: {
    50: '#6b6e4b',
    500: '#313806',
    950: '#000000',
  },
}
SCSS
$custom: #313806;
$custom-light: #6b6e4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313806",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 6
  },
  "hsl": {
    "h": 68.4,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.3233,
    "c": 0.06949,
    "h": 117.6
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#313806
secondary
#2E2178
accent
#31F74D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313806

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

Preview Lab → · Contrast checker → · Palette generator →

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