#403D04#403D04

#403D04 is a dark, moderate yellow. Relative luminance 0.044; OKLCH L 35.2% C 0.072 H 106.3°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#403D04
RGBrgb(64, 61, 4)
HSLhsl(57, 88%, 13%)
HSVhsv(57, 94%, 25%)
CMYKcmyk(0%, 4.7%, 93.8%, 74.9%)
CIE-LABlab(25.06, -5.96, 32.19)
CIE-LCHlch(25.06, 32.74, 100.48°)
OKLaboklab(35.2% -0.0203 0.0694)
OKLCHoklch(35.2% 0.072 106.3)
XYZxyz(3.8052, 4.4364, 0.7707)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D04 #040740
analogous
#401F04 #403D04 #254004
triadic
#403D04 #04403D #3D0440
tetradic
#403D04 #04401F #040740 #400425
square
#403D04 #04401F #040740 #400425
split-complementary
#403D04 #042540 #1F0440
monochromatic
#1D1B02 #1D1B02 #403D04 #7A7408 #B3AB0B

Accessibility & contrast

On white

11.13
#403D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#403D04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D04
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D04#FFFFFF#000000##FFFFFF
##403D041.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#453C08
Tritanopia (blue-blind)
#463833
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403d04;
/* rgb */ color: rgb(64, 61, 4);
/* oklch */ color: oklch(35.2% 0.072 106.3);
Tailwind
colors: {
  custom: {
    50: '#77724b',
    500: '#403d04',
    950: '#000000',
  },
}
SCSS
$custom: #403d04;
$custom-light: #77724b;
$custom-dark: #000000;
JSON
{
  "hex": "#403d04",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 4
  },
  "hsl": {
    "h": 57,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.35197,
    "c": 0.07229,
    "h": 106.3
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#403D04
secondary
#1F2381
accent
#34FE29
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403D04

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

Preview Lab → · Contrast checker → · Palette generator →

#403D04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva