#312708#312708

#312708 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.7% C 0.048 H 90.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#312708
RGBrgb(49, 39, 8)
HSLhsl(45, 72%, 11%)
HSVhsv(45, 84%, 19%)
CMYKcmyk(0%, 20.4%, 83.7%, 80.8%)
CIE-LABlab(16.11, 0.44, 20.17)
CIE-LCHlch(16.11, 20.18, 88.74°)
OKLaboklab(27.7% -0.0007 0.048)
OKLCHoklch(27.7% 0.048 90.8)
XYZxyz(2.0361, 2.1217, 0.5320)
Luminance0.0212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312708 #081231
analogous
#311208 #312708 #263108
triadic
#312708 #083127 #270831
tetradic
#312708 #083112 #081231 #310826
square
#312708 #083112 #081231 #310826
split-complementary
#312708 #082631 #120831
monochromatic
#1A1504 #1A1504 #312708 #665111 #9A7B19

Accessibility & contrast

On white

14.74
#312708 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#312708 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312708
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312708#FFFFFF#000000##FFFFFF
##3127081.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2605
Deuteranopia (green-blind)
#2F2909
Tritanopia (blue-blind)
#362321
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #312708;
/* rgb */ color: rgb(49, 39, 8);
/* oklch */ color: oklch(27.7% 0.048 90.8);
Tailwind
colors: {
  custom: {
    50: '#6b604a',
    500: '#312708',
    950: '#000000',
  },
}
SCSS
$custom: #312708;
$custom-light: #6b604a;
$custom-dark: #000000;
JSON
{
  "hex": "#312708",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 8
  },
  "hsl": {
    "h": 45.366,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.27703,
    "c": 0.04797,
    "h": 90.8
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#312708
secondary
#253770
accent
#65EF39
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312708

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

Preview Lab → · Contrast checker → · Palette generator →

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