#402212#402212

#402212 is a dark, muted orange. Relative luminance 0.023; OKLCH L 28.8% C 0.053 H 47.8°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#402212
RGBrgb(64, 34, 18)
HSLhsl(21, 56%, 16%)
HSVhsv(21, 72%, 25%)
CMYKcmyk(0%, 46.9%, 71.9%, 74.9%)
CIE-LABlab(16.88, 12.61, 16.74)
CIE-LCHlch(16.88, 20.96, 53.02°)
OKLaboklab(28.82% 0.0357 0.0393)
OKLCHoklch(28.82% 0.053 47.8)
XYZxyz(2.7958, 2.2780, 0.8646)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402212 #123040
analogous
#401219 #402212 #403912
triadic
#402212 #124022 #221240
tetradic
#402212 #194012 #123040 #391240
square
#402212 #194012 #123040 #391240
split-complementary
#402212 #124039 #121940
monochromatic
#180D07 #180D07 #402212 #703B1F #A0552D

Accessibility & contrast

On white

14.43
#402212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#402212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402212
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402212#FFFFFF#000000##FFFFFF
##4022121.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2611
Deuteranopia (green-blind)
#312C12
Tritanopia (blue-blind)
#461C1E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #402212;
/* rgb */ color: rgb(64, 34, 18);
/* oklch */ color: oklch(28.8% 0.053 47.8);
Tailwind
colors: {
  custom: {
    50: '#785d50',
    500: '#402212',
    950: '#000000',
  },
}
SCSS
$custom: #402212;
$custom-light: #785d50;
$custom-dark: #000000;
JSON
{
  "hex": "#402212",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 18
  },
  "hsl": {
    "h": 20.87,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.28818,
    "c": 0.0531,
    "h": 47.8
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#402212
secondary
#356179
accent
#ABDF48
background
#F7F5F4
surface
#EDE9E7
border
#C8C5C3
text
#090402
muted
#7B7978

Preview Lab

Preview with #402212

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

Preview Lab → · Contrast checker → · Palette generator →

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