#402A04#402A04

#402A04 is a dark, moderate orange. Relative luminance 0.028; OKLCH L 30.4% C 0.060 H 75.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#402A04
RGBrgb(64, 42, 4)
HSLhsl(38, 88%, 13%)
HSVhsv(38, 94%, 25%)
CMYKcmyk(0%, 34.4%, 93.8%, 74.9%)
CIE-LABlab(19.03, 6.38, 25.80)
CIE-LCHlch(19.03, 26.58, 76.11°)
OKLaboklab(30.44% 0.0146 0.0583)
OKLCHoklch(30.44% 0.06 75.9)
XYZxyz(2.9645, 2.7549, 0.4905)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A04 #041A40
analogous
#400C04 #402A04 #384004
triadic
#402A04 #04402A #2A0440
tetradic
#402A04 #04400C #041A40 #400438
square
#402A04 #04400C #041A40 #400438
split-complementary
#402A04 #043840 #0C0440
monochromatic
#1D1302 #1D1302 #402A04 #7A5008 #B3760B

Accessibility & contrast

On white

13.54
#402A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#402A04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A04
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A04#FFFFFF#000000##FFFFFF
##402A041.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B00
Deuteranopia (green-blind)
#373005
Tritanopia (blue-blind)
#472423
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #402a04;
/* rgb */ color: rgb(64, 42, 4);
/* oklch */ color: oklch(30.4% 0.060 75.9);
Tailwind
colors: {
  custom: {
    50: '#786349',
    500: '#402a04',
    950: '#000000',
  },
}
SCSS
$custom: #402a04;
$custom-light: #786349;
$custom-dark: #000000;
JSON
{
  "hex": "#402a04",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 4
  },
  "hsl": {
    "h": 38,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.30436,
    "c": 0.06011,
    "h": 75.9
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#402A04
secondary
#1F4381
accent
#78FE29
background
#F7F5F4
surface
#EEEAE7
border
#C9C6C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #402A04

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

Preview Lab → · Contrast checker → · Palette generator →

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