#313407#313407

#313407 is a dark, moderate yellow. Relative luminance 0.031; OKLCH L 31.2% C 0.063 H 113.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#313407
RGBrgb(49, 52, 7)
HSLhsl(64, 76%, 12%)
HSVhsv(64, 87%, 20%)
CMYKcmyk(5.8%, 0%, 86.5%, 79.6%)
CIE-LABlab(20.54, -8.13, 25.81)
CIE-LCHlch(20.54, 27.06, 107.48°)
OKLaboklab(31.22% -0.0251 0.0581)
OKLCHoklch(31.22% 0.063 113.3)
XYZxyz(2.5330, 3.1243, 0.6706)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313407 #0A0734
analogous
#342107 #313407 #1B3407
triadic
#313407 #073134 #340731
tetradic
#313407 #073421 #0A0734 #34071B
square
#313407 #073421 #0A0734 #34071B
split-complementary
#313407 #071B34 #210734
monochromatic
#191B04 #191B04 #313407 #646A0E #97A016

Accessibility & contrast

On white

12.92
#313407 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313407 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313407
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313407#FFFFFF#000000##FFFFFF
##3134071.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393102
Deuteranopia (green-blind)
#39320A
Tritanopia (blue-blind)
#35302B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313407;
/* rgb */ color: rgb(49, 52, 7);
/* oklch */ color: oklch(31.2% 0.063 113.3);
Tailwind
colors: {
  custom: {
    50: '#6b6b4b',
    500: '#313407',
    950: '#000000',
  },
}
SCSS
$custom: #313407;
$custom-light: #6b6b4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313407",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 7
  },
  "hsl": {
    "h": 64,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.06324,
    "h": 113.3
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#313407
secondary
#292374
accent
#35F342
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313407

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

Preview Lab → · Contrast checker → · Palette generator →

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