#313508#313508

#313508 is a dark, moderate yellow. Relative luminance 0.032; OKLCH L 31.5% C 0.064 H 114.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#313508
RGBrgb(49, 53, 8)
HSLhsl(65, 74%, 12%)
HSVhsv(65, 85%, 21%)
CMYKcmyk(7.5%, 0%, 84.9%, 79.2%)
CIE-LABlab(20.89, -8.68, 25.80)
CIE-LCHlch(20.89, 27.22, 108.59°)
OKLaboklab(31.51% -0.0264 0.058)
OKLCHoklch(31.51% 0.064 114.5)
XYZxyz(2.5836, 3.2168, 0.7145)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313508 #0C0835
analogous
#352308 #313508 #1B3508
triadic
#313508 #083135 #350831
tetradic
#313508 #083523 #0C0835 #35081B
square
#313508 #083523 #0C0835 #35081B
split-complementary
#313508 #081B35 #230835
monochromatic
#191B04 #191B04 #313508 #626A10 #939F18

Accessibility & contrast

On white

12.78
#313508 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#313508 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313508
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313508#FFFFFF#000000##FFFFFF
##3135081.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3202
Deuteranopia (green-blind)
#39330C
Tritanopia (blue-blind)
#35312C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313508;
/* rgb */ color: rgb(49, 53, 8);
/* oklch */ color: oklch(31.5% 0.064 114.5);
Tailwind
colors: {
  custom: {
    50: '#6b6c4b',
    500: '#313508',
    950: '#000000',
  },
}
SCSS
$custom: #313508;
$custom-light: #6b6c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313508",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 8
  },
  "hsl": {
    "h": 65.333,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.31506,
    "c": 0.06372,
    "h": 114.5
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#313508
secondary
#2C2574
accent
#37F048
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313508

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

Preview Lab → · Contrast checker → · Palette generator →

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