#402006#402006

#402006 is a dark, moderate orange. Relative luminance 0.021; OKLCH L 28.2% C 0.062 H 55.5°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#402006
RGBrgb(64, 32, 6)
HSLhsl(27, 83%, 14%)
HSVhsv(27, 91%, 25%)
CMYKcmyk(0%, 50%, 90.6%, 74.9%)
CIE-LABlab(16.19, 13.14, 21.56)
CIE-LCHlch(16.19, 25.24, 58.63°)
OKLaboklab(28.24% 0.0349 0.0508)
OKLCHoklch(28.24% 0.062 55.5)
XYZxyz(2.6640, 2.1365, 0.4443)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402006 #062640
analogous
#400609 #402006 #403D06
triadic
#402006 #064020 #200640
tetradic
#402006 #094006 #062640 #3D0640
square
#402006 #094006 #062640 #3D0640
split-complementary
#402006 #06403D #060940
monochromatic
#1C0E03 #1C0E03 #402006 #783C0B #B05810

Accessibility & contrast

On white

14.71
#402006 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402006
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402006#FFFFFF#000000##FFFFFF
##4020061.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402006;
/* rgb */ color: rgb(64, 32, 6);
/* oklch */ color: oklch(28.2% 0.062 55.5);
Tailwind
colors: {
  custom: {
    50: '#785b49',
    500: '#402006',
    950: '#000000',
  },
}
SCSS
$custom: #402006;
$custom-light: #785b49;
$custom-dark: #000000;
JSON
{
  "hex": "#402006",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 6
  },
  "hsl": {
    "h": 26.897,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.28235,
    "c": 0.06164,
    "h": 55.5
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#402006
secondary
#225680
accent
#9EF92F
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090401
muted
#7B7977

Preview Lab

Preview with #402006

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

Preview Lab → · Contrast checker → · Palette generator →

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