#402812#402812

#402812 is a dark, muted orange. Relative luminance 0.027; OKLCH L 30.1% C 0.050 H 61.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#402812
RGBrgb(64, 40, 18)
HSLhsl(29, 56%, 16%)
HSVhsv(29, 72%, 25%)
CMYKcmyk(0%, 37.5%, 71.9%, 74.9%)
CIE-LABlab(18.59, 8.61, 18.79)
CIE-LCHlch(18.59, 20.67, 65.39°)
OKLaboklab(30.14% 0.0237 0.0437)
OKLCHoklch(30.14% 0.05 61.6)
XYZxyz(2.9825, 2.6515, 0.9269)
Luminance0.0265 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402812 #122A40
analogous
#401213 #402812 #403F12
triadic
#402812 #124028 #281240
tetradic
#402812 #134012 #122A40 #3F1240
square
#402812 #134012 #122A40 #3F1240
split-complementary
#402812 #12403F #121340
monochromatic
#180F07 #180F07 #402812 #70461F #A0642D

Accessibility & contrast

On white

13.72
#402812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#402812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402812
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402812#FFFFFF#000000##FFFFFF
##4028121.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A10
Deuteranopia (green-blind)
#352F12
Tritanopia (blue-blind)
#462323
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402812;
/* rgb */ color: rgb(64, 40, 18);
/* oklch */ color: oklch(30.1% 0.050 61.6);
Tailwind
colors: {
  custom: {
    50: '#776150',
    500: '#402812',
    950: '#000000',
  },
}
SCSS
$custom: #402812;
$custom-light: #776150;
$custom-dark: #000000;
JSON
{
  "hex": "#402812",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 28.696,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.30138,
    "c": 0.0497,
    "h": 61.6
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#402812
secondary
#355879
accent
#97DF48
background
#F7F5F4
surface
#EDEAE7
border
#C8C6C3
text
#090502
muted
#7B7978

Preview Lab

Preview with #402812

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

Preview Lab → · Contrast checker → · Palette generator →

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