#402D06#402D06

#402D06 is a dark, muted orange. Relative luminance 0.030; OKLCH L 31.2% C 0.059 H 80.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#402D06
RGBrgb(64, 45, 6)
HSLhsl(40, 83%, 14%)
HSVhsv(40, 91%, 25%)
CMYKcmyk(0%, 29.7%, 90.6%, 74.9%)
CIE-LABlab(19.96, 4.49, 26.05)
CIE-LCHlch(19.96, 26.44, 80.23°)
OKLaboklab(31.17% 0.0095 0.0583)
OKLCHoklch(31.17% 0.059 80.7)
XYZxyz(3.0858, 2.9802, 0.5850)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D06 #061940
analogous
#401006 #402D06 #364006
triadic
#402D06 #06402D #2D0640
tetradic
#402D06 #064010 #061940 #400636
square
#402D06 #064010 #061940 #400636
split-complementary
#402D06 #063640 #100640
monochromatic
#1C1403 #1C1403 #402D06 #78540B #B07C10

Accessibility & contrast

On white

13.16
#402D06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#402D06 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D06
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D06#FFFFFF#000000##FFFFFF
##402D061.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352D01
Deuteranopia (green-blind)
#393208
Tritanopia (blue-blind)
#462726
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d06;
/* rgb */ color: rgb(64, 45, 6);
/* oklch */ color: oklch(31.2% 0.059 80.7);
Tailwind
colors: {
  custom: {
    50: '#78654a',
    500: '#402d06',
    950: '#000000',
  },
}
SCSS
$custom: #402d06;
$custom-light: #78654a;
$custom-dark: #000000;
JSON
{
  "hex": "#402d06",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 6
  },
  "hsl": {
    "h": 40.345,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.31169,
    "c": 0.05907,
    "h": 80.7
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#402D06
secondary
#224180
accent
#71F92F
background
#F7F6F4
surface
#EEEBE7
border
#C9C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D06

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

Preview Lab → · Contrast checker → · Palette generator →

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