#313805#313805

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

Color values

HEX#313805
RGBrgb(49, 56, 5)
HSLhsl(68, 84%, 12%)
HSVhsv(68, 91%, 22%)
CMYKcmyk(12.5%, 0%, 91.1%, 78%)
CIE-LABlab(21.92, -10.72, 28.13)
CIE-LCHlch(21.92, 30.10, 110.85°)
OKLaboklab(32.32% -0.0325 0.0624)
OKLCHoklch(32.32% 0.07 117.5)
XYZxyz(2.7083, 3.4923, 0.6750)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313805 #0C0538
analogous
#382605 #313805 #183805
triadic
#313805 #053138 #380531
tetradic
#313805 #053826 #0C0538 #380518
square
#313805 #053826 #0C0538 #380518
split-complementary
#313805 #051838 #260538
monochromatic
#191C03 #191C03 #313805 #62700A #93A80F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313805#FFFFFF#000000##FFFFFF
##3138051.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)
#3D3400
Deuteranopia (green-blind)
#3C3509
Tritanopia (blue-blind)
#35342F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313805;
/* rgb */ color: rgb(49, 56, 5);
/* oklch */ color: oklch(32.3% 0.070 117.5);
Tailwind
colors: {
  custom: {
    50: '#6b6e4a',
    500: '#313805',
    950: '#000000',
  },
}
SCSS
$custom: #313805;
$custom-light: #6b6e4a;
$custom-dark: #000000;
JSON
{
  "hex": "#313805",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 5
  },
  "hsl": {
    "h": 68.235,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.32321,
    "c": 0.07032,
    "h": 117.5
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#313805
secondary
#2C2079
accent
#2EFA4A
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313805

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

Preview Lab → · Contrast checker → · Palette generator →

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