#403908#403908

#403908 is a dark, moderate yellow. Relative luminance 0.040; OKLCH L 34.2% C 0.065 H 100.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#403908
RGBrgb(64, 57, 8)
HSLhsl(53, 78%, 14%)
HSVhsv(53, 88%, 25%)
CMYKcmyk(0%, 10.9%, 87.5%, 74.9%)
CIE-LABlab(23.78, -3.23, 29.31)
CIE-LCHlch(23.78, 29.49, 96.29°)
OKLaboklab(34.19% -0.0122 0.0642)
OKLCHoklch(34.19% 0.065 100.7)
XYZxyz(3.6215, 4.0339, 0.8176)
Luminance0.0403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403908 #080F40
analogous
#401D08 #403908 #2B4008
triadic
#403908 #084039 #390840
tetradic
#403908 #08401D #080F40 #40082B
square
#403908 #08401D #080F40 #40082B
split-complementary
#403908 #082B40 #1D0840
monochromatic
#1B1803 #1B1803 #403908 #76690F #AD9A16

Accessibility & contrast

On white

11.62
#403908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#403908 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403908
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403908#FFFFFF#000000##FFFFFF
##4039081.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3701
Deuteranopia (green-blind)
#413A0B
Tritanopia (blue-blind)
#463430
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403908;
/* rgb */ color: rgb(64, 57, 8);
/* oklch */ color: oklch(34.2% 0.065 100.7);
Tailwind
colors: {
  custom: {
    50: '#776f4c',
    500: '#403908',
    950: '#000000',
  },
}
SCSS
$custom: #403908;
$custom-light: #776f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#403908",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 8
  },
  "hsl": {
    "h": 52.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.06535,
    "h": 100.7
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#403908
secondary
#25307E
accent
#4CF434
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403908

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

Preview Lab → · Contrast checker → · Palette generator →

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