#400520#400520

#400520 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.7% C 0.091 H 359.0°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#400520
RGBrgb(64, 5, 32)
HSLhsl(333, 86%, 14%)
HSVhsv(333, 92%, 25%)
CMYKcmyk(0%, 92.2%, 50%, 74.9%)
CIE-LABlab(11.30, 29.63, -0.77)
CIE-LCHlch(11.30, 29.64, 358.51°)
OKLaboklab(24.73% 0.0912 -0.0017)
OKLCHoklch(24.73% 0.091 359)
XYZxyz(2.4295, 1.3031, 1.4898)
Luminance0.0130 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400520 #054025
analogous
#40053D #400520 #400705
triadic
#400520 #204005 #052040
tetradic
#400520 #3D4005 #054025 #070540
square
#400520 #3D4005 #054025 #070540
split-complementary
#400520 #054007 #053D40
monochromatic
#1C020E #1C020E #400520 #79093C #B20E59

Accessibility & contrast

On white

16.66
#400520 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400520 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400520
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400520#FFFFFF#000000##FFFFFF
##4005201.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131721
Deuteranopia (green-blind)
#23221F
Tritanopia (blue-blind)
#460011
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400520;
/* rgb */ color: rgb(64, 5, 32);
/* oklch */ color: oklch(24.7% 0.091 359.0);
Tailwind
colors: {
  custom: {
    50: '#794d5b',
    500: '#400520',
    950: '#000000',
  },
}
SCSS
$custom: #400520;
$custom-light: #794d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#400520",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 32
  },
  "hsl": {
    "h": 332.542,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24733,
    "c": 0.09121,
    "h": 359
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#400520
secondary
#208154
accent
#FC9D2C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090104
muted
#7B7779

Preview Lab

Preview with #400520

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

Preview Lab → · Contrast checker → · Palette generator →

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