#402C17#402C17

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

Color values

HEX#402C17
RGBrgb(64, 44, 23)
HSLhsl(31, 47%, 17%)
HSVhsv(31, 64%, 25%)
CMYKcmyk(0%, 31.2%, 64.1%, 74.9%)
CIE-LABlab(19.86, 6.39, 17.15)
CIE-LCHlch(19.86, 18.30, 69.56°)
OKLaboklab(31.15% 0.0179 0.0408)
OKLCHoklch(31.15% 0.045 66.3)
XYZxyz(3.1699, 2.9534, 1.2136)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C17 #172B40
analogous
#401817 #402C17 #404017
triadic
#402C17 #17402C #2C1740
tetradic
#402C17 #174018 #172B40 #401740
square
#402C17 #174018 #172B40 #401740
split-complementary
#402C17 #174040 #181740
monochromatic
#170F08 #170F08 #402C17 #6D4B27 #9A6A37

Accessibility & contrast

On white

13.20
#402C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#402C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C17
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C17#FFFFFF#000000##FFFFFF
##402C171.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D15
Deuteranopia (green-blind)
#373217
Tritanopia (blue-blind)
#462727
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402c17;
/* rgb */ color: rgb(64, 44, 23);
/* oklch */ color: oklch(31.1% 0.045 66.3);
Tailwind
colors: {
  custom: {
    50: '#776554',
    500: '#402c17',
    950: '#000000',
  },
}
SCSS
$custom: #402c17;
$custom-light: #776554;
$custom-dark: #000000;
JSON
{
  "hex": "#402c17",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 23
  },
  "hsl": {
    "h": 30.732,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.31147,
    "c": 0.04452,
    "h": 66.3
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#402C17
secondary
#3C5977
accent
#92D751
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090502
muted
#7B7A78

Preview Lab

Preview with #402C17

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

Preview Lab → · Contrast checker → · Palette generator →

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