#313308#313308

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

Color values

HEX#313308
RGBrgb(49, 51, 8)
HSLhsl(63, 73%, 12%)
HSVhsv(63, 84%, 20%)
CMYKcmyk(3.9%, 0%, 84.3%, 80%)
CIE-LABlab(20.20, -7.43, 25.03)
CIE-LCHlch(20.20, 26.11, 106.54°)
OKLaboklab(30.95% -0.023 0.0566)
OKLCHoklch(30.95% 0.061 112.1)
XYZxyz(2.4944, 3.0382, 0.6847)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313308 #0A0833
analogous
#332008 #313308 #1C3308
triadic
#313308 #083133 #330831
tetradic
#313308 #083320 #0A0833 #33081C
square
#313308 #083320 #0A0833 #33081C
split-complementary
#313308 #081C33 #200833
monochromatic
#191A04 #191A04 #313308 #646810 #979D19

Accessibility & contrast

On white

13.06
#313308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313308
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313308#FFFFFF#000000##FFFFFF
##3133081.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313308;
/* rgb */ color: rgb(49, 51, 8);
/* oklch */ color: oklch(30.9% 0.061 112.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a4b',
    500: '#313308',
    950: '#000000',
  },
}
SCSS
$custom: #313308;
$custom-light: #6b6a4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313308",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 8
  },
  "hsl": {
    "h": 62.791,
    "s": 72.881,
    "l": 11.569
  },
  "oklch": {
    "l": 0.30948,
    "c": 0.06104,
    "h": 112.1
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#313308
secondary
#292572
accent
#38F041
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313308

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

Preview Lab → · Contrast checker → · Palette generator →

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