#403F2F#403F2F

#403F2F is a dark, muted yellow. Relative luminance 0.049; OKLCH L 36.4% C 0.026 H 104.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#403F2F
RGBrgb(64, 63, 47)
HSLhsl(56, 15%, 22%)
HSVhsv(56, 27%, 25%)
CMYKcmyk(0%, 1.6%, 26.6%, 74.9%)
CIE-LABlab(26.30, -2.75, 10.00)
CIE-LCHlch(26.30, 10.37, 105.35°)
OKLaboklab(36.37% -0.0066 0.0254)
OKLCHoklch(36.37% 0.026 104.7)
XYZxyz(4.4049, 4.8503, 3.3929)
Luminance0.0485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F2F #2F3040
analogous
#40372F #403F2F #39402F
triadic
#403F2F #2F403F #3F2F40
tetradic
#403F2F #2F4037 #2F3040 #402F39
square
#403F2F #2F4037 #2F3040 #402F39
split-complementary
#403F2F #2F3940 #372F40
monochromatic
#12110D #1D1C15 #403F2F #636249 #878463

Accessibility & contrast

On white

10.66
#403F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#403F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F2F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F2F#FFFFFF#000000##FFFFFF
##403F2F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423E2E
Deuteranopia (green-blind)
#423F30
Tritanopia (blue-blind)
#433D3B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403f2f;
/* rgb */ color: rgb(64, 63, 47);
/* oklch */ color: oklch(36.4% 0.026 104.7);
Tailwind
colors: {
  custom: {
    50: '#757467',
    500: '#403f2f',
    950: '#000000',
  },
}
SCSS
$custom: #403f2f;
$custom-light: #757467;
$custom-dark: #000000;
JSON
{
  "hex": "#403f2f",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 47
  },
  "hsl": {
    "h": 56.471,
    "s": 15.315,
    "l": 21.765
  },
  "oklch": {
    "l": 0.36372,
    "c": 0.02624,
    "h": 104.7
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#403F2F
secondary
#5B5C70
accent
#74B870
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080806
muted
#7B7B7A

Preview Lab

Preview with #403F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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