#402A12#402A12

#402A12 is a dark, muted orange. Relative luminance 0.028; OKLCH L 30.6% C 0.049 H 66.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#402A12
RGBrgb(64, 42, 18)
HSLhsl(31, 56%, 16%)
HSVhsv(31, 72%, 25%)
CMYKcmyk(0%, 34.4%, 71.9%, 74.9%)
CIE-LABlab(19.18, 7.27, 19.48)
CIE-LCHlch(19.18, 20.80, 69.53°)
OKLaboklab(30.6% 0.0197 0.0452)
OKLCHoklch(30.6% 0.049 66.5)
XYZxyz(3.0517, 2.7898, 0.9499)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A12 #122840
analogous
#401312 #402A12 #3F4012
triadic
#402A12 #12402A #2A1240
tetradic
#402A12 #124013 #122840 #40123F
square
#402A12 #124013 #122840 #40123F
split-complementary
#402A12 #123F40 #131240
monochromatic
#181007 #181007 #402A12 #70491F #A0692D

Accessibility & contrast

On white

13.48
#402A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402A12
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A12#FFFFFF#000000##FFFFFF
##402A121.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312C10
Deuteranopia (green-blind)
#363112
Tritanopia (blue-blind)
#462525
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402a12;
/* rgb */ color: rgb(64, 42, 18);
/* oklch */ color: oklch(30.6% 0.049 66.5);
Tailwind
colors: {
  custom: {
    50: '#776350',
    500: '#402a12',
    950: '#000000',
  },
}
SCSS
$custom: #402a12;
$custom-light: #776350;
$custom-dark: #000000;
JSON
{
  "hex": "#402a12",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 18
  },
  "hsl": {
    "h": 31.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.30598,
    "c": 0.04929,
    "h": 66.5
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#402A12
secondary
#355579
accent
#91DF48
background
#F7F5F4
surface
#EDEAE7
border
#C8C6C3
text
#090502
muted
#7B7978

Preview Lab

Preview with #402A12

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

Preview Lab → · Contrast checker → · Palette generator →

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