#313307#313307

#313307 is a dark, moderate yellow. Relative luminance 0.030; OKLCH L 30.9% C 0.062 H 112.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#313307
RGBrgb(49, 51, 7)
HSLhsl(63, 76%, 11%)
HSVhsv(63, 86%, 20%)
CMYKcmyk(3.9%, 0%, 86.3%, 80%)
CIE-LABlab(20.19, -7.50, 25.42)
CIE-LCHlch(20.19, 26.51, 106.44°)
OKLaboklab(30.94% -0.0233 0.0574)
OKLCHoklch(30.94% 0.062 112.1)
XYZxyz(2.4889, 3.0360, 0.6559)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313307 #090733
analogous
#331F07 #313307 #1B3307
triadic
#313307 #073133 #330731
tetradic
#313307 #07331F #090733 #33071B
square
#313307 #07331F #090733 #33071B
split-complementary
#313307 #071B33 #1F0733
monochromatic
#1A1B04 #1A1B04 #313307 #65690E #989F16

Accessibility & contrast

On white

13.07
#313307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#313307 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313307
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313307#FFFFFF#000000##FFFFFF
##3133071.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383002
Deuteranopia (green-blind)
#38310A
Tritanopia (blue-blind)
#352F2B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313307;
/* rgb */ color: rgb(49, 51, 7);
/* oklch */ color: oklch(30.9% 0.062 112.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a4b',
    500: '#313307',
    950: '#000000',
  },
}
SCSS
$custom: #313307;
$custom-light: #6b6a4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313307",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 7
  },
  "hsl": {
    "h": 62.727,
    "s": 75.862,
    "l": 11.373
  },
  "oklch": {
    "l": 0.30939,
    "c": 0.06193,
    "h": 112.1
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#313307
secondary
#272373
accent
#35F23E
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313307

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

Preview Lab → · Contrast checker → · Palette generator →

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