#402012#402012

#402012 is a dark, muted orange. Relative luminance 0.022; OKLCH L 28.4% C 0.055 H 43.7°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#402012
RGBrgb(64, 32, 18)
HSLhsl(18, 56%, 16%)
HSVhsv(18, 72%, 25%)
CMYKcmyk(0%, 50%, 71.9%, 74.9%)
CIE-LABlab(16.34, 13.92, 16.07)
CIE-LCHlch(16.34, 21.26, 49.10°)
OKLaboklab(28.4% 0.0397 0.0379)
OKLCHoklch(28.4% 0.055 43.7)
XYZxyz(2.7403, 2.1670, 0.8461)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402012 #123240
analogous
#40121B #402012 #403712
triadic
#402012 #124020 #201240
tetradic
#402012 #1B4012 #123240 #371240
square
#402012 #1B4012 #123240 #371240
split-complementary
#402012 #124037 #121B40
monochromatic
#180C07 #180C07 #402012 #70381F #A0502D

Accessibility & contrast

On white

14.65
#402012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#402012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402012
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402012#FFFFFF#000000##FFFFFF
##4020121.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292411
Deuteranopia (green-blind)
#302B12
Tritanopia (blue-blind)
#471A1D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #402012;
/* rgb */ color: rgb(64, 32, 18);
/* oklch */ color: oklch(28.4% 0.055 43.7);
Tailwind
colors: {
  custom: {
    50: '#785c50',
    500: '#402012',
    950: '#000000',
  },
}
SCSS
$custom: #402012;
$custom-light: #785c50;
$custom-dark: #000000;
JSON
{
  "hex": "#402012",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 18.261,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.28401,
    "c": 0.05487,
    "h": 43.7
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#402012
secondary
#356479
accent
#B1DF48
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090402
muted
#7B7978

Preview Lab

Preview with #402012

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

Preview Lab → · Contrast checker → · Palette generator →

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