#312707#312707

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

Color values

HEX#312707
RGBrgb(49, 39, 7)
HSLhsl(46, 75%, 11%)
HSVhsv(46, 86%, 19%)
CMYKcmyk(0%, 20.4%, 85.7%, 80.8%)
CIE-LABlab(16.10, 0.37, 20.57)
CIE-LCHlch(16.10, 20.57, 88.98°)
OKLaboklab(27.69% -0.0011 0.049)
OKLCHoklch(27.69% 0.049 91.3)
XYZxyz(2.0306, 2.1195, 0.5031)
Luminance0.0212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312707 #071131
analogous
#311207 #312707 #263107
triadic
#312707 #073127 #270731
tetradic
#312707 #073112 #071131 #310726
square
#312707 #073112 #071131 #310726
split-complementary
#312707 #072631 #120731
monochromatic
#1B1504 #1B1504 #312707 #67520F #9C7C16

Accessibility & contrast

On white

14.75
#312707 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312707
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312707#FFFFFF#000000##FFFFFF
##3127071.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2604
Deuteranopia (green-blind)
#2F2908
Tritanopia (blue-blind)
#362320
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #312707;
/* rgb */ color: rgb(49, 39, 7);
/* oklch */ color: oklch(27.7% 0.049 91.3);
Tailwind
colors: {
  custom: {
    50: '#6b604a',
    500: '#312707',
    950: '#000000',
  },
}
SCSS
$custom: #312707;
$custom-light: #6b604a;
$custom-dark: #000000;
JSON
{
  "hex": "#312707",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 7
  },
  "hsl": {
    "h": 45.714,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.27691,
    "c": 0.04899,
    "h": 91.3
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#312707
secondary
#233671
accent
#63F236
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312707

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

Preview Lab → · Contrast checker → · Palette generator →

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