#402008#402008

#402008 is a dark, moderate orange. Relative luminance 0.021; OKLCH L 28.3% C 0.060 H 53.9°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#402008
RGBrgb(64, 32, 8)
HSLhsl(26, 78%, 14%)
HSVhsv(26, 88%, 25%)
CMYKcmyk(0%, 50%, 87.5%, 74.9%)
CIE-LABlab(16.21, 13.25, 20.77)
CIE-LCHlch(16.21, 24.64, 57.45°)
OKLaboklab(28.26% 0.0357 0.0488)
OKLCHoklch(28.26% 0.06 53.9)
XYZxyz(2.6749, 2.1408, 0.5020)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402008 #082840
analogous
#40080C #402008 #403C08
triadic
#402008 #084020 #200840
tetradic
#402008 #0C4008 #082840 #3C0840
square
#402008 #0C4008 #082840 #3C0840
split-complementary
#402008 #08403C #080C40
monochromatic
#1B0E03 #1B0E03 #402008 #763B0F #AD5616

Accessibility & contrast

On white

14.70
#402008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#402008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402008
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402008#FFFFFF#000000##FFFFFF
##4020081.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292405
Deuteranopia (green-blind)
#312B08
Tritanopia (blue-blind)
#47191B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #402008;
/* rgb */ color: rgb(64, 32, 8);
/* oklch */ color: oklch(28.3% 0.060 53.9);
Tailwind
colors: {
  custom: {
    50: '#785b4a',
    500: '#402008',
    950: '#000000',
  },
}
SCSS
$custom: #402008;
$custom-light: #785b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#402008",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 8
  },
  "hsl": {
    "h": 25.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.28258,
    "c": 0.06046,
    "h": 53.9
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#402008
secondary
#25587E
accent
#A2F434
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090401
muted
#7B7977

Preview Lab

Preview with #402008

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

Preview Lab → · Contrast checker → · Palette generator →

#402008 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva