#404118#404118

#404118 is a dark, moderate yellow. Relative luminance 0.049; OKLCH L 36.4% C 0.060 H 110.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#404118
RGBrgb(64, 65, 24)
HSLhsl(61, 46%, 17%)
HSVhsv(61, 63%, 25%)
CMYKcmyk(1.5%, 0%, 63.1%, 74.5%)
CIE-LABlab(26.55, -7.08, 24.41)
CIE-LCHlch(26.55, 25.41, 106.17°)
OKLaboklab(36.44% -0.021 0.0567)
OKLCHoklch(36.44% 0.06 110.3)
XYZxyz(4.1696, 4.9366, 1.5972)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404118 #191841
analogous
#412D18 #404118 #2C4118
triadic
#404118 #184041 #411840
tetradic
#404118 #18412D #191841 #41182C
square
#404118 #18412D #191841 #41182C
split-complementary
#404118 #182C41 #2D1841
monochromatic
#161608 #161608 #404118 #6C6E29 #989A39

Accessibility & contrast

On white

10.57
#404118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#404118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404118
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404118#FFFFFF#000000##FFFFFF
##4041181.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463E14
Deuteranopia (green-blind)
#473F1A
Tritanopia (blue-blind)
#453D38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #404118;
/* rgb */ color: rgb(64, 65, 24);
/* oklch */ color: oklch(36.4% 0.060 110.3);
Tailwind
colors: {
  custom: {
    50: '#767556',
    500: '#404118',
    950: '#000000',
  },
}
SCSS
$custom: #404118;
$custom-light: #767556;
$custom-dark: #000000;
JSON
{
  "hex": "#404118",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 24
  },
  "hsl": {
    "h": 61.463,
    "s": 46.067,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36439,
    "c": 0.06044,
    "h": 110.3
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#404118
secondary
#3F3D78
accent
#52D655
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#090803
muted
#7B7B78

Preview Lab

Preview with #404118

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

Preview Lab → · Contrast checker → · Palette generator →

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