#402D08#402D08

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

Color values

HEX#402D08
RGBrgb(64, 45, 8)
HSLhsl(40, 78%, 14%)
HSVhsv(40, 88%, 25%)
CMYKcmyk(0%, 29.7%, 87.5%, 74.9%)
CIE-LABlab(19.98, 4.60, 25.26)
CIE-LCHlch(19.98, 25.67, 79.67°)
OKLaboklab(31.19% 0.0102 0.0566)
OKLCHoklch(31.19% 0.058 79.8)
XYZxyz(3.0968, 2.9845, 0.6427)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D08 #081B40
analogous
#401108 #402D08 #374008
triadic
#402D08 #08402D #2D0840
tetradic
#402D08 #084011 #081B40 #400837
square
#402D08 #084011 #081B40 #400837
split-complementary
#402D08 #083740 #110840
monochromatic
#1B1303 #1B1303 #402D08 #76530F #AD7A16

Accessibility & contrast

On white

13.15
#402D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402D08
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D08#FFFFFF#000000##FFFFFF
##402D081.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D04
Deuteranopia (green-blind)
#393209
Tritanopia (blue-blind)
#462826
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d08;
/* rgb */ color: rgb(64, 45, 8);
/* oklch */ color: oklch(31.2% 0.058 79.8);
Tailwind
colors: {
  custom: {
    50: '#78654b',
    500: '#402d08',
    950: '#000000',
  },
}
SCSS
$custom: #402d08;
$custom-light: #78654b;
$custom-dark: #000000;
JSON
{
  "hex": "#402d08",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 8
  },
  "hsl": {
    "h": 39.643,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.05755,
    "h": 79.8
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#402D08
secondary
#25447E
accent
#75F434
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D08

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

Preview Lab → · Contrast checker → · Palette generator →

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