#403A04#403A04

#403A04 is a dark, moderate yellow. Relative luminance 0.041; OKLCH L 34.4% C 0.069 H 102.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#403A04
RGBrgb(64, 58, 4)
HSLhsl(54, 88%, 13%)
HSVhsv(54, 94%, 25%)
CMYKcmyk(0%, 9.4%, 93.8%, 74.9%)
CIE-LABlab(24.08, -4.08, 31.24)
CIE-LCHlch(24.08, 31.50, 97.44°)
OKLaboklab(34.41% -0.0151 0.0676)
OKLCHoklch(34.41% 0.069 102.6)
XYZxyz(3.6495, 4.1250, 0.7188)
Luminance0.0413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A04 #040A40
analogous
#401C04 #403A04 #284004
triadic
#403A04 #04403A #3A0440
tetradic
#403A04 #04401C #040A40 #400428
square
#403A04 #04401C #040A40 #400428
split-complementary
#403A04 #042840 #1C0440
monochromatic
#1D1A02 #1D1A02 #403A04 #7A6E08 #B3A20B

Accessibility & contrast

On white

11.51
#403A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#403A04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A04
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A04#FFFFFF#000000##FFFFFF
##403A041.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413800
Deuteranopia (green-blind)
#423A08
Tritanopia (blue-blind)
#463530
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403a04;
/* rgb */ color: rgb(64, 58, 4);
/* oklch */ color: oklch(34.4% 0.069 102.6);
Tailwind
colors: {
  custom: {
    50: '#786f4a',
    500: '#403a04',
    950: '#000000',
  },
}
SCSS
$custom: #403a04;
$custom-light: #786f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#403a04",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 54,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34414,
    "c": 0.06925,
    "h": 102.6
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#403A04
secondary
#1F2881
accent
#3FFE29
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403A04

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

Preview Lab → · Contrast checker → · Palette generator →

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