#313907#313907

#313907 is a dark, moderate yellow. Relative luminance 0.036; OKLCH L 32.6% C 0.070 H 118.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#313907
RGBrgb(49, 57, 7)
HSLhsl(70, 78%, 13%)
HSVhsv(70, 88%, 22%)
CMYKcmyk(14%, 0%, 87.7%, 77.6%)
CIE-LABlab(22.28, -11.18, 27.71)
CIE-LCHlch(22.28, 29.88, 111.97°)
OKLaboklab(32.62% -0.0335 0.0615)
OKLCHoklch(32.62% 0.07 118.6)
XYZxyz(2.7682, 3.5946, 0.7490)
Luminance0.0360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313907 #0F0739
analogous
#392807 #313907 #183907
triadic
#313907 #073139 #390731
tetradic
#313907 #073928 #0F0739 #390718
square
#313907 #073928 #0F0739 #390718
split-complementary
#313907 #071839 #280739
monochromatic
#171B03 #171B03 #313907 #60700E #8FA614

Accessibility & contrast

On white

12.22
#313907 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#313907 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313907
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313907#FFFFFF#000000##FFFFFF
##3139071.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3500
Deuteranopia (green-blind)
#3D350B
Tritanopia (blue-blind)
#353530
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #313907;
/* rgb */ color: rgb(49, 57, 7);
/* oklch */ color: oklch(32.6% 0.070 118.6);
Tailwind
colors: {
  custom: {
    50: '#6b6f4b',
    500: '#313907',
    950: '#000000',
  },
}
SCSS
$custom: #313907;
$custom-light: #6b6f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313907",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 7
  },
  "hsl": {
    "h": 69.6,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.32621,
    "c": 0.07005,
    "h": 118.6
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#313907
secondary
#312379
accent
#33F552
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313907

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

Preview Lab → · Contrast checker → · Palette generator →

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