#403B18#403B18

#403B18 is a dark, muted yellow. Relative luminance 0.043; OKLCH L 34.9% C 0.053 H 101.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#403B18
RGBrgb(64, 59, 24)
HSLhsl(53, 45%, 17%)
HSVhsv(53, 63%, 25%)
CMYKcmyk(0%, 7.8%, 62.5%, 74.9%)
CIE-LABlab(24.59, -3.34, 22.16)
CIE-LCHlch(24.59, 22.41, 98.56°)
OKLaboklab(34.88% -0.0103 0.0518)
OKLCHoklch(34.88% 0.053 101.3)
XYZxyz(3.8433, 4.2840, 1.4884)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B18 #181D40
analogous
#402718 #403B18 #314018
triadic
#403B18 #18403B #3B1840
tetradic
#403B18 #184027 #181D40 #401831
square
#403B18 #184027 #181D40 #401831
split-complementary
#403B18 #183140 #271840
monochromatic
#161508 #161508 #403B18 #6D6429 #998D39

Accessibility & contrast

On white

11.31
#403B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#403B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B18
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B18#FFFFFF#000000##FFFFFF
##403B181.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403915
Deuteranopia (green-blind)
#423B1A
Tritanopia (blue-blind)
#453733
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403b18;
/* rgb */ color: rgb(64, 59, 24);
/* oklch */ color: oklch(34.9% 0.053 101.3);
Tailwind
colors: {
  custom: {
    50: '#767056',
    500: '#403b18',
    950: '#000000',
  },
}
SCSS
$custom: #403b18;
$custom-light: #767056;
$custom-dark: #000000;
JSON
{
  "hex": "#403b18",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 24
  },
  "hsl": {
    "h": 52.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.34876,
    "c": 0.05285,
    "h": 101.3
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#403B18
secondary
#3D4477
accent
#63D553
background
#F7F6F5
surface
#EDECE9
border
#C8C7C5
text
#090703
muted
#7B7A78

Preview Lab

Preview with #403B18

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

Preview Lab → · Contrast checker → · Palette generator →

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