#404008#404008

#404008 is a dark, moderate yellow. Relative luminance 0.048; OKLCH L 36.0% C 0.073 H 109.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#404008
RGBrgb(64, 64, 8)
HSLhsl(60, 78%, 14%)
HSVhsv(60, 88%, 25%)
CMYKcmyk(0%, 0%, 87.5%, 74.9%)
CIE-LABlab(26.08, -7.59, 31.51)
CIE-LCHlch(26.08, 32.41, 103.55°)
OKLaboklab(36.02% -0.0244 0.0687)
OKLCHoklch(36.02% 0.073 109.6)
XYZxyz(3.9917, 4.7744, 0.9410)
Luminance0.0477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404008 #080840
analogous
#402408 #404008 #244008
triadic
#404008 #084040 #400840
tetradic
#404008 #084024 #080840 #400824
square
#404008 #084024 #080840 #400824
split-complementary
#404008 #082440 #240840
monochromatic
#1B1B03 #1B1B03 #404008 #76760F #ADAD16

Accessibility & contrast

On white

10.74
#404008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#404008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404008
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404008#FFFFFF#000000##FFFFFF
##4040081.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D00
Deuteranopia (green-blind)
#473F0D
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #404008;
/* rgb */ color: rgb(64, 64, 8);
/* oklch */ color: oklch(36.0% 0.073 109.6);
Tailwind
colors: {
  custom: {
    50: '#77744d',
    500: '#404008',
    950: '#000000',
  },
}
SCSS
$custom: #404008;
$custom-light: #77744d;
$custom-dark: #000000;
JSON
{
  "hex": "#404008",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 60,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.07287,
    "h": 109.6
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#404008
secondary
#25257E
accent
#34F434
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #404008

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

Preview Lab → · Contrast checker → · Palette generator →

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