#403C18#403C18

#403C18 is a dark, muted yellow. Relative luminance 0.044; OKLCH L 35.1% C 0.054 H 103.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#403C18
RGBrgb(64, 60, 24)
HSLhsl(54, 45%, 17%)
HSVhsv(54, 63%, 25%)
CMYKcmyk(0%, 6.2%, 62.5%, 74.9%)
CIE-LABlab(24.91, -3.97, 22.54)
CIE-LCHlch(24.91, 22.88, 99.99°)
OKLaboklab(35.13% -0.0121 0.0527)
OKLCHoklch(35.13% 0.054 103)
XYZxyz(3.8952, 4.3878, 1.5057)
Luminance0.0439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C18 #181C40
analogous
#402818 #403C18 #304018
triadic
#403C18 #18403C #3C1840
tetradic
#403C18 #184028 #181C40 #401830
square
#403C18 #184028 #181C40 #401830
split-complementary
#403C18 #183040 #281840
monochromatic
#161508 #161508 #403C18 #6D6629 #998F39

Accessibility & contrast

On white

11.18
#403C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#403C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C18
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C18#FFFFFF#000000##FFFFFF
##403C181.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A14
Deuteranopia (green-blind)
#433C1A
Tritanopia (blue-blind)
#453834
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403c18;
/* rgb */ color: rgb(64, 60, 24);
/* oklch */ color: oklch(35.1% 0.054 103.0);
Tailwind
colors: {
  custom: {
    50: '#767156',
    500: '#403c18',
    950: '#000000',
  },
}
SCSS
$custom: #403c18;
$custom-light: #767156;
$custom-dark: #000000;
JSON
{
  "hex": "#403c18",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 24
  },
  "hsl": {
    "h": 54,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.35134,
    "c": 0.05403,
    "h": 103
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#403C18
secondary
#3D4377
accent
#60D553
background
#F7F6F5
surface
#EDECE9
border
#C8C7C5
text
#090703
muted
#7B7A78

Preview Lab

Preview with #403C18

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

Preview Lab → · Contrast checker → · Palette generator →

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