#404007#404007

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

Color values

HEX#404007
RGBrgb(64, 64, 7)
HSLhsl(60, 80%, 14%)
HSVhsv(60, 89%, 25%)
CMYKcmyk(0%, 0%, 89.1%, 74.9%)
CIE-LABlab(26.08, -7.64, 31.91)
CIE-LCHlch(26.08, 32.81, 103.47°)
OKLaboklab(36.01% -0.0246 0.0693)
OKLCHoklch(36.01% 0.074 109.6)
XYZxyz(3.9863, 4.7722, 0.9121)
Luminance0.0477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404007 #070740
analogous
#402407 #404007 #244007
triadic
#404007 #074040 #400740
tetradic
#404007 #074024 #070740 #400724
square
#404007 #074024 #070740 #400724
split-complementary
#404007 #072440 #240740
monochromatic
#1C1C03 #1C1C03 #404007 #77770D #AEAE13

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404007#FFFFFF#000000##FFFFFF
##4040071.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)
#473F0C
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #404007;
/* rgb */ color: rgb(64, 64, 7);
/* oklch */ color: oklch(36.0% 0.074 109.6);
Tailwind
colors: {
  custom: {
    50: '#77744d',
    500: '#404007',
    950: '#000000',
  },
}
SCSS
$custom: #404007;
$custom-light: #77744d;
$custom-dark: #000000;
JSON
{
  "hex": "#404007",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 7
  },
  "hsl": {
    "h": 60,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3601,
    "c": 0.07353,
    "h": 109.6
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#404007
secondary
#24247F
accent
#31F731
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #404007

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

Preview Lab → · Contrast checker → · Palette generator →

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