#403A18#403A18

#403A18 is a dark, muted yellow. Relative luminance 0.042; OKLCH L 34.6% C 0.052 H 99.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#403A18
RGBrgb(64, 58, 24)
HSLhsl(51, 45%, 17%)
HSVhsv(51, 63%, 25%)
CMYKcmyk(0%, 9.4%, 62.5%, 74.9%)
CIE-LABlab(24.26, -2.70, 21.78)
CIE-LCHlch(24.26, 21.95, 97.07°)
OKLaboklab(34.62% -0.0085 0.051)
OKLCHoklch(34.62% 0.052 99.5)
XYZxyz(3.7924, 4.1822, 1.4715)
Luminance0.0418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A18 #181E40
analogous
#402618 #403A18 #324018
triadic
#403A18 #18403A #3A1840
tetradic
#403A18 #184026 #181E40 #401832
square
#403A18 #184026 #181E40 #401832
split-complementary
#403A18 #183240 #261840
monochromatic
#161408 #161408 #403A18 #6D6229 #998B39

Accessibility & contrast

On white

11.44
#403A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#403A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A18
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A18#FFFFFF#000000##FFFFFF
##403A181.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3815
Deuteranopia (green-blind)
#413B1A
Tritanopia (blue-blind)
#453632
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403a18;
/* rgb */ color: rgb(64, 58, 24);
/* oklch */ color: oklch(34.6% 0.052 99.5);
Tailwind
colors: {
  custom: {
    50: '#767056',
    500: '#403a18',
    950: '#000000',
  },
}
SCSS
$custom: #403a18;
$custom-light: #767056;
$custom-dark: #000000;
JSON
{
  "hex": "#403a18",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 24
  },
  "hsl": {
    "h": 51,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.34619,
    "c": 0.05172,
    "h": 99.5
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#403A18
secondary
#3D4677
accent
#66D553
background
#F7F6F5
surface
#EDECE9
border
#C8C7C5
text
#090703
muted
#7B7A78

Preview Lab

Preview with #403A18

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

Preview Lab → · Contrast checker → · Palette generator →

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