#402802#402802

#402802 is a dark, moderate orange. Relative luminance 0.026; OKLCH L 29.9% C 0.062 H 73.3°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#402802
RGBrgb(64, 40, 2)
HSLhsl(37, 94%, 13%)
HSVhsv(37, 97%, 25%)
CMYKcmyk(0%, 37.5%, 96.9%, 74.9%)
CIE-LABlab(18.42, 7.60, 25.90)
CIE-LCHlch(18.42, 26.99, 73.64°)
OKLaboklab(29.95% 0.0178 0.0591)
OKLCHoklch(29.95% 0.062 73.3)
XYZxyz(2.8843, 2.6122, 0.4097)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402802 #021A40
analogous
#400902 #402802 #394002
triadic
#402802 #024028 #280240
tetradic
#402802 #024009 #021A40 #400239
square
#402802 #024009 #021A40 #400239
split-complementary
#402802 #023940 #090240
monochromatic
#1E1301 #1E1301 #402802 #7B4D04 #B77206

Accessibility & contrast

On white

13.79
#402802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#402802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402802
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402802#FFFFFF#000000##FFFFFF
##4028021.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#362F03
Tritanopia (blue-blind)
#472221
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402802;
/* rgb */ color: rgb(64, 40, 2);
/* oklch */ color: oklch(29.9% 0.062 73.3);
Tailwind
colors: {
  custom: {
    50: '#786148',
    500: '#402802',
    950: '#000000',
  },
}
SCSS
$custom: #402802;
$custom-light: #786148;
$custom-dark: #000000;
JSON
{
  "hex": "#402802",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 2
  },
  "hsl": {
    "h": 36.774,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.29949,
    "c": 0.06167,
    "h": 73.3
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#402802
secondary
#1B4383
accent
#7CFF29
background
#F7F5F4
surface
#EEE9E6
border
#C9C5C2
text
#090500
muted
#7B7977

Preview Lab

Preview with #402802

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

Preview Lab → · Contrast checker → · Palette generator →

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