#402B02#402B02

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

Color values

HEX#402B02
RGBrgb(64, 43, 2)
HSLhsl(40, 94%, 13%)
HSVhsv(40, 97%, 25%)
CMYKcmyk(0%, 32.8%, 96.9%, 74.9%)
CIE-LABlab(19.32, 5.60, 26.94)
CIE-LCHlch(19.32, 27.52, 78.27°)
OKLaboklab(30.65% 0.012 0.0607)
OKLCHoklch(30.65% 0.062 78.8)
XYZxyz(2.9894, 2.8224, 0.4448)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402B02 #021740
analogous
#400C02 #402B02 #364002
triadic
#402B02 #02402B #2B0240
tetradic
#402B02 #02400C #021740 #400236
square
#402B02 #02400C #021740 #400236
split-complementary
#402B02 #023640 #0C0240
monochromatic
#1E1401 #1E1401 #402B02 #7B5304 #B77B06

Accessibility & contrast

On white

13.42
#402B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#402B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402B02
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402B02#FFFFFF#000000##FFFFFF
##402B021.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C00
Deuteranopia (green-blind)
#383103
Tritanopia (blue-blind)
#472523
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402b02;
/* rgb */ color: rgb(64, 43, 2);
/* oklch */ color: oklch(30.7% 0.062 78.8);
Tailwind
colors: {
  custom: {
    50: '#786448',
    500: '#402b02',
    950: '#000000',
  },
}
SCSS
$custom: #402b02;
$custom-light: #786448;
$custom-dark: #000000;
JSON
{
  "hex": "#402b02",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 39.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.30651,
    "c": 0.06182,
    "h": 78.8
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#402B02
secondary
#1B3E83
accent
#71FF29
background
#F7F5F4
surface
#EEEAE6
border
#C9C6C2
text
#090500
muted
#7B7977

Preview Lab

Preview with #402B02

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

Preview Lab → · Contrast checker → · Palette generator →

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