#312702#312702

#312702 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.6% C 0.054 H 93.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#312702
RGBrgb(49, 39, 2)
HSLhsl(47, 92%, 10%)
HSVhsv(47, 96%, 19%)
CMYKcmyk(0%, 20.4%, 95.9%, 80.8%)
CIE-LABlab(16.05, -0.02, 22.53)
CIE-LCHlch(16.05, 22.53, 90.05°)
OKLaboklab(27.63% -0.0032 0.0542)
OKLCHoklch(27.63% 0.054 93.4)
XYZxyz(2.0032, 2.1085, 0.3589)
Luminance0.0211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312702 #020C31
analogous
#310F02 #312702 #243102
triadic
#312702 #023127 #270231
tetradic
#312702 #02310F #020C31 #310224
square
#312702 #02310F #020C31 #310224
split-complementary
#312702 #022431 #0F0231
monochromatic
#1D1701 #1D1701 #312702 #6C5604 #A78507

Accessibility & contrast

On white

14.77
#312702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312702
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312702#FFFFFF#000000##FFFFFF
##3127021.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312702;
/* rgb */ color: rgb(49, 39, 2);
/* oklch */ color: oklch(27.6% 0.054 93.4);
Tailwind
colors: {
  custom: {
    50: '#6b6047',
    500: '#312702',
    950: '#000000',
  },
}
SCSS
$custom: #312702;
$custom-light: #6b6047;
$custom-dark: #000000;
JSON
{
  "hex": "#312702",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 2
  },
  "hsl": {
    "h": 47.234,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.27629,
    "c": 0.05433,
    "h": 93.4
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#312702
secondary
#192D75
accent
#56FF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312702

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

Preview Lab → · Contrast checker → · Palette generator →

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