#312602#312602

#312602 is a dark, muted yellow. Relative luminance 0.020; OKLCH L 27.4% C 0.054 H 91.4°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#312602
RGBrgb(49, 38, 2)
HSLhsl(46, 92%, 10%)
HSVhsv(46, 96%, 19%)
CMYKcmyk(0%, 22.4%, 95.9%, 80.8%)
CIE-LABlab(15.71, 0.66, 22.12)
CIE-LCHlch(15.71, 22.13, 88.29°)
OKLaboklab(27.37% -0.0013 0.0536)
OKLCHoklch(27.37% 0.054 91.4)
XYZxyz(1.9708, 2.0437, 0.3481)
Luminance0.0204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312602 #020D31
analogous
#310E02 #312602 #253102
triadic
#312602 #023126 #260231
tetradic
#312602 #02310E #020D31 #310225
square
#312602 #02310E #020D31 #310225
split-complementary
#312602 #022531 #0E0231
monochromatic
#1D1701 #1D1701 #312602 #6C5404 #A78107

Accessibility & contrast

On white

14.91
#312602 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#312602 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312602
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312602#FFFFFF#000000##FFFFFF
##3126021.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2500
Deuteranopia (green-blind)
#2E2803
Tritanopia (blue-blind)
#36221F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #312602;
/* rgb */ color: rgb(49, 38, 2);
/* oklch */ color: oklch(27.4% 0.054 91.4);
Tailwind
colors: {
  custom: {
    50: '#6b6047',
    500: '#312602',
    950: '#000000',
  },
}
SCSS
$custom: #312602;
$custom-light: #6b6047;
$custom-dark: #000000;
JSON
{
  "hex": "#312602",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 2
  },
  "hsl": {
    "h": 45.957,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.27367,
    "c": 0.05365,
    "h": 91.4
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#312602
secondary
#192F75
accent
#5BFF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#070400
muted
#7A7977

Preview Lab

Preview with #312602

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

Preview Lab → · Contrast checker → · Palette generator →

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