#404817#404817

#404817 is a dark, moderate yellow. Relative luminance 0.058; OKLCH L 38.3% C 0.071 H 117.7°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#404817
RGBrgb(64, 72, 23)
HSLhsl(70, 52%, 19%)
HSVhsv(70, 68%, 28%)
CMYKcmyk(11.1%, 0%, 68.1%, 71.8%)
CIE-LABlab(28.87, -11.36, 27.51)
CIE-LCHlch(28.87, 29.76, 112.44°)
OKLaboklab(38.29% -0.0332 0.0631)
OKLCHoklch(38.29% 0.071 117.7)
XYZxyz(4.5865, 5.7866, 1.6858)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404817 #1F1748
analogous
#483717 #404817 #274817
triadic
#404817 #174048 #481740
tetradic
#404817 #174837 #1F1748 #481727
square
#404817 #174837 #1F1748 #481727
split-complementary
#404817 #172748 #371748
monochromatic
#151707 #171A08 #404817 #697626 #92A535

Accessibility & contrast

On white

9.73
#404817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#404817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404817
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404817#FFFFFF#000000##FFFFFF
##4048171.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4411
Deuteranopia (green-blind)
#4C441A
Tritanopia (blue-blind)
#44443E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #404817;
/* rgb */ color: rgb(64, 72, 23);
/* oklch */ color: oklch(38.3% 0.071 117.7);
Tailwind
colors: {
  custom: {
    50: '#767a56',
    500: '#404817',
    950: '#000000',
  },
}
SCSS
$custom: #404817;
$custom-light: #767a56;
$custom-dark: #000000;
JSON
{
  "hex": "#404817",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 69.796,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38288,
    "c": 0.07133,
    "h": 117.7
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#404817
secondary
#473C7F
accent
#4DDB64
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404817

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

Preview Lab → · Contrast checker → · Palette generator →

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