#402D17#402D17

#402D17 is a dark, muted orange. Relative luminance 0.030; OKLCH L 31.4% C 0.045 H 69.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#402D17
RGBrgb(64, 45, 23)
HSLhsl(32, 47%, 17%)
HSVhsv(32, 64%, 25%)
CMYKcmyk(0%, 29.7%, 64.1%, 74.9%)
CIE-LABlab(20.16, 5.72, 17.51)
CIE-LCHlch(20.16, 18.43, 71.91°)
OKLaboklab(31.38% 0.0159 0.0416)
OKLCHoklch(31.38% 0.045 69)
XYZxyz(3.2076, 3.0288, 1.2261)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D17 #172A40
analogous
#401917 #402D17 #3F4017
triadic
#402D17 #17402D #2D1740
tetradic
#402D17 #174019 #172A40 #40173F
square
#402D17 #174019 #172A40 #40173F
split-complementary
#402D17 #173F40 #191740
monochromatic
#171008 #171008 #402D17 #6D4D27 #9A6C37

Accessibility & contrast

On white

13.08
#402D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D17
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D17#FFFFFF#000000##FFFFFF
##402D171.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332E15
Deuteranopia (green-blind)
#383217
Tritanopia (blue-blind)
#462828
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402d17;
/* rgb */ color: rgb(64, 45, 23);
/* oklch */ color: oklch(31.4% 0.045 69.0);
Tailwind
colors: {
  custom: {
    50: '#776554',
    500: '#402d17',
    950: '#000000',
  },
}
SCSS
$custom: #402d17;
$custom-light: #776554;
$custom-dark: #000000;
JSON
{
  "hex": "#402d17",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 23
  },
  "hsl": {
    "h": 32.195,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.31383,
    "c": 0.04451,
    "h": 69
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#402D17
secondary
#3C5777
accent
#8FD751
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090502
muted
#7B7A78

Preview Lab

Preview with #402D17

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

Preview Lab → · Contrast checker → · Palette generator →

#402D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva