#403904#403904

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

Color values

HEX#403904
RGBrgb(64, 57, 4)
HSLhsl(53, 88%, 13%)
HSVhsv(53, 94%, 25%)
CMYKcmyk(0%, 10.9%, 93.8%, 74.9%)
CIE-LABlab(23.75, -3.45, 30.91)
CIE-LCHlch(23.75, 31.10, 96.36°)
OKLaboklab(34.15% -0.0133 0.067)
OKLCHoklch(34.15% 0.068 101.2)
XYZxyz(3.5996, 4.0252, 0.7022)
Luminance0.0403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403904 #040B40
analogous
#401B04 #403904 #294004
triadic
#403904 #044039 #390440
tetradic
#403904 #04401B #040B40 #400429
square
#403904 #04401B #040B40 #400429
split-complementary
#403904 #042940 #1B0440
monochromatic
#1D1A02 #1D1A02 #403904 #7A6C08 #B3A00B

Accessibility & contrast

On white

11.63
#403904 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403904
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403904#FFFFFF#000000##FFFFFF
##4039041.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403700
Deuteranopia (green-blind)
#423A08
Tritanopia (blue-blind)
#46342F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403904;
/* rgb */ color: rgb(64, 57, 4);
/* oklch */ color: oklch(34.2% 0.068 101.2);
Tailwind
colors: {
  custom: {
    50: '#786f4a',
    500: '#403904',
    950: '#000000',
  },
}
SCSS
$custom: #403904;
$custom-light: #786f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#403904",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 4
  },
  "hsl": {
    "h": 53,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.06831,
    "h": 101.2
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#403904
secondary
#1F2A81
accent
#42FE29
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403904

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

Preview Lab → · Contrast checker → · Palette generator →

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