#312807#312807

#312807 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 28.0% C 0.050 H 93.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#312807
RGBrgb(49, 40, 7)
HSLhsl(47, 75%, 11%)
HSVhsv(47, 86%, 19%)
CMYKcmyk(0%, 18.4%, 85.7%, 80.8%)
CIE-LABlab(16.43, -0.31, 20.98)
CIE-LCHlch(16.43, 20.98, 90.85°)
OKLaboklab(27.95% -0.003 0.0497)
OKLCHoklch(27.95% 0.05 93.5)
XYZxyz(2.0639, 2.1860, 0.5142)
Luminance0.0219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312807 #071031
analogous
#311307 #312807 #253107
triadic
#312807 #073128 #280731
tetradic
#312807 #073113 #071031 #310725
square
#312807 #073113 #071031 #310725
split-complementary
#312807 #072531 #130731
monochromatic
#1B1604 #1B1604 #312807 #67540F #9C7F16

Accessibility & contrast

On white

14.61
#312807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#312807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312807
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312807#FFFFFF#000000##FFFFFF
##3128071.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2704
Deuteranopia (green-blind)
#302A09
Tritanopia (blue-blind)
#362421
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312807;
/* rgb */ color: rgb(49, 40, 7);
/* oklch */ color: oklch(28.0% 0.050 93.5);
Tailwind
colors: {
  custom: {
    50: '#6b614a',
    500: '#312807',
    950: '#000000',
  },
}
SCSS
$custom: #312807;
$custom-light: #6b614a;
$custom-dark: #000000;
JSON
{
  "hex": "#312807",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 7
  },
  "hsl": {
    "h": 47.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.27953,
    "c": 0.04977,
    "h": 93.5
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#312807
secondary
#233471
accent
#5EF236
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312807

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

Preview Lab → · Contrast checker → · Palette generator →

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