#402A02#402A02

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

Color values

HEX#402A02
RGBrgb(64, 42, 2)
HSLhsl(39, 94%, 13%)
HSVhsv(39, 97%, 25%)
CMYKcmyk(0%, 34.4%, 96.9%, 74.9%)
CIE-LABlab(19.02, 6.26, 26.60)
CIE-LCHlch(19.02, 27.32, 76.75°)
OKLaboklab(30.42% 0.0139 0.0601)
OKLCHoklch(30.42% 0.062 77)
XYZxyz(2.9535, 2.7506, 0.4328)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A02 #021840
analogous
#400B02 #402A02 #374002
triadic
#402A02 #02402A #2A0240
tetradic
#402A02 #02400B #021840 #400237
square
#402A02 #02400B #021840 #400237
split-complementary
#402A02 #023740 #0B0240
monochromatic
#1E1301 #1E1301 #402A02 #7B5104 #B77806

Accessibility & contrast

On white

13.55
#402A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402A02
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A02#FFFFFF#000000##FFFFFF
##402A021.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402a02;
/* rgb */ color: rgb(64, 42, 2);
/* oklch */ color: oklch(30.4% 0.062 77.0);
Tailwind
colors: {
  custom: {
    50: '#786348',
    500: '#402a02',
    950: '#000000',
  },
}
SCSS
$custom: #402a02;
$custom-light: #786348;
$custom-dark: #000000;
JSON
{
  "hex": "#402a02",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 38.71,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.30415,
    "c": 0.0617,
    "h": 77
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#402A02
secondary
#1B4083
accent
#75FF29
background
#F7F5F4
surface
#EEEAE6
border
#C9C6C2
text
#090500
muted
#7B7977

Preview Lab

Preview with #402A02

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

Preview Lab → · Contrast checker → · Palette generator →

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