#313707#313707

#313707 is a dark, moderate yellow. Relative luminance 0.034; OKLCH L 32.1% C 0.067 H 116.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#313707
RGBrgb(49, 55, 7)
HSLhsl(68, 77%, 12%)
HSVhsv(68, 87%, 22%)
CMYKcmyk(10.9%, 0%, 87.3%, 78.4%)
CIE-LABlab(21.58, -9.97, 26.96)
CIE-LCHlch(21.58, 28.75, 110.30°)
OKLaboklab(32.06% -0.0302 0.0602)
OKLCHoklch(32.06% 0.067 116.6)
XYZxyz(2.6712, 3.4007, 0.7167)
Luminance0.0340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313707 #0D0737
analogous
#372507 #313707 #193707
triadic
#313707 #073137 #370731
tetradic
#313707 #073725 #0D0737 #370719
square
#313707 #073725 #0D0737 #370719
split-complementary
#313707 #071937 #250737
monochromatic
#181B03 #181B03 #313707 #616D0E #92A415

Accessibility & contrast

On white

12.50
#313707 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#313707 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313707
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313707#FFFFFF#000000##FFFFFF
##3137071.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3401
Deuteranopia (green-blind)
#3B340B
Tritanopia (blue-blind)
#35332E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313707;
/* rgb */ color: rgb(49, 55, 7);
/* oklch */ color: oklch(32.1% 0.067 116.6);
Tailwind
colors: {
  custom: {
    50: '#6b6d4b',
    500: '#313707',
    950: '#000000',
  },
}
SCSS
$custom: #313707;
$custom-light: #6b6d4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313707",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 7
  },
  "hsl": {
    "h": 67.5,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.06729,
    "h": 116.6
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#313707
secondary
#2E2377
accent
#34F44C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313707

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

Preview Lab → · Contrast checker → · Palette generator →

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