#400820#400820

#400820 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.1% C 0.087 H 0.0°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#400820
RGBrgb(64, 8, 32)
HSLhsl(334, 78%, 14%)
HSVhsv(334, 88%, 25%)
CMYKcmyk(0%, 87.5%, 50%, 74.9%)
CIE-LABlab(11.74, 28.35, -0.12)
CIE-LCHlch(11.74, 28.35, 359.77°)
OKLaboklab(25.06% 0.0871 0)
OKLCHoklch(25.06% 0.087 0)
XYZxyz(2.4621, 1.3683, 1.5007)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400820 #084028
analogous
#40083C #400820 #400C08
triadic
#400820 #204008 #082040
tetradic
#400820 #3C4008 #084028 #0C0840
square
#400820 #3C4008 #084028 #0C0840
split-complementary
#400820 #08400C #083C40
monochromatic
#1B030E #1B030E #400820 #760F3B #AD1656

Accessibility & contrast

On white

16.49
#400820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400820
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400820#FFFFFF#000000##FFFFFF
##4008201.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151821
Deuteranopia (green-blind)
#24231F
Tritanopia (blue-blind)
#460113
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400820;
/* rgb */ color: rgb(64, 8, 32);
/* oklch */ color: oklch(25.1% 0.087 0.0);
Tailwind
colors: {
  custom: {
    50: '#784e5b',
    500: '#400820',
    950: '#000000',
  },
}
SCSS
$custom: #400820;
$custom-light: #784e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#400820",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 32
  },
  "hsl": {
    "h": 334.286,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2506,
    "c": 0.0871,
    "h": 0
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#400820
secondary
#257E58
accent
#F4A234
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400820

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

Preview Lab → · Contrast checker → · Palette generator →

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