#313807#313807

#313807 is a dark, moderate yellow. Relative luminance 0.035; OKLCH L 32.3% C 0.069 H 117.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#313807
RGBrgb(49, 56, 7)
HSLhsl(69, 78%, 12%)
HSVhsv(69, 88%, 22%)
CMYKcmyk(12.5%, 0%, 87.5%, 78%)
CIE-LABlab(21.93, -10.58, 27.33)
CIE-LCHlch(21.93, 29.31, 111.16°)
OKLaboklab(32.34% -0.0318 0.0608)
OKLCHoklch(32.34% 0.069 117.6)
XYZxyz(2.7192, 3.4967, 0.7327)
Luminance0.0350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313807 #0E0738
analogous
#382607 #313807 #193807
triadic
#313807 #073138 #380731
tetradic
#313807 #073826 #0E0738 #380719
square
#313807 #073826 #0E0738 #380719
split-complementary
#313807 #071938 #260738
monochromatic
#181B03 #181B03 #313807 #616E0E #90A515

Accessibility & contrast

On white

12.36
#313807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#313807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313807
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313807#FFFFFF#000000##FFFFFF
##3138071.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3401
Deuteranopia (green-blind)
#3C350B
Tritanopia (blue-blind)
#35342F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313807;
/* rgb */ color: rgb(49, 56, 7);
/* oklch */ color: oklch(32.3% 0.069 117.6);
Tailwind
colors: {
  custom: {
    50: '#6b6e4b',
    500: '#313807',
    950: '#000000',
  },
}
SCSS
$custom: #313807;
$custom-light: #6b6e4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313807",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 7
  },
  "hsl": {
    "h": 68.571,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.32339,
    "c": 0.06867,
    "h": 117.6
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#313807
secondary
#2F2378
accent
#34F44F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313807

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

Preview Lab → · Contrast checker → · Palette generator →

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