#312907#312907

#312907 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.2% C 0.051 H 95.6°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#312907
RGBrgb(49, 41, 7)
HSLhsl(49, 75%, 11%)
HSVhsv(49, 86%, 19%)
CMYKcmyk(0%, 16.3%, 85.7%, 80.8%)
CIE-LABlab(16.77, -0.99, 21.39)
CIE-LCHlch(16.77, 21.42, 92.64°)
OKLaboklab(28.22% -0.005 0.0504)
OKLCHoklch(28.22% 0.051 95.6)
XYZxyz(2.0980, 2.2543, 0.5256)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312907 #070F31
analogous
#311407 #312907 #243107
triadic
#312907 #073129 #290731
tetradic
#312907 #073114 #070F31 #310724
square
#312907 #073114 #070F31 #310724
split-complementary
#312907 #072431 #140731
monochromatic
#1B1604 #1B1604 #312907 #67560F #9C8316

Accessibility & contrast

On white

14.47
#312907 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#312907 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312907
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312907#FFFFFF#000000##FFFFFF
##3129071.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312907;
/* rgb */ color: rgb(49, 41, 7);
/* oklch */ color: oklch(28.2% 0.051 95.6);
Tailwind
colors: {
  custom: {
    50: '#6b624a',
    500: '#312907',
    950: '#000000',
  },
}
SCSS
$custom: #312907;
$custom-light: #6b624a;
$custom-dark: #000000;
JSON
{
  "hex": "#312907",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 7
  },
  "hsl": {
    "h": 48.571,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.28217,
    "c": 0.05062,
    "h": 95.6
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#312907
secondary
#233271
accent
#5AF236
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312907

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

Preview Lab → · Contrast checker → · Palette generator →

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