#402E17#402E17

#402E17 is a dark, muted orange. Relative luminance 0.031; OKLCH L 31.6% C 0.045 H 71.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#402E17
RGBrgb(64, 46, 23)
HSLhsl(34, 47%, 17%)
HSVhsv(34, 64%, 25%)
CMYKcmyk(0%, 28.1%, 64.1%, 74.9%)
CIE-LABlab(20.46, 5.05, 17.88)
CIE-LCHlch(20.46, 18.58, 74.22°)
OKLaboklab(31.62% 0.014 0.0424)
OKLCHoklch(31.62% 0.045 71.8)
XYZxyz(3.2462, 3.1061, 1.2390)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E17 #172940
analogous
#401A17 #402E17 #3E4017
triadic
#402E17 #17402E #2E1740
tetradic
#402E17 #17401A #172940 #40173E
square
#402E17 #17401A #172940 #40173E
split-complementary
#402E17 #173E40 #1A1740
monochromatic
#171008 #171008 #402E17 #6D4E27 #9A6F37

Accessibility & contrast

On white

12.95
#402E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E17
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E17#FFFFFF#000000##FFFFFF
##402E171.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342F15
Deuteranopia (green-blind)
#393318
Tritanopia (blue-blind)
#462A29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402e17;
/* rgb */ color: rgb(64, 46, 23);
/* oklch */ color: oklch(31.6% 0.045 71.8);
Tailwind
colors: {
  custom: {
    50: '#776654',
    500: '#402e17',
    950: '#000000',
  },
}
SCSS
$custom: #402e17;
$custom-light: #776654;
$custom-dark: #000000;
JSON
{
  "hex": "#402e17",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 23
  },
  "hsl": {
    "h": 33.659,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.31621,
    "c": 0.04463,
    "h": 71.8
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#402E17
secondary
#3C5677
accent
#8CD751
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090603
muted
#7B7A78

Preview Lab

Preview with #402E17

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

Preview Lab → · Contrast checker → · Palette generator →

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