#400720#400720

#400720 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 25.0% C 0.088 H 359.7°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#400720
RGBrgb(64, 7, 32)
HSLhsl(334, 80%, 14%)
HSVhsv(334, 89%, 25%)
CMYKcmyk(0%, 89.1%, 50%, 74.9%)
CIE-LABlab(11.60, 28.77, -0.33)
CIE-LCHlch(11.60, 28.77, 359.34°)
OKLaboklab(24.95% 0.0884 -0.0005)
OKLCHoklch(24.95% 0.088 359.7)
XYZxyz(2.4512, 1.3466, 1.4971)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400720 #074027
analogous
#40073D #400720 #400B07
triadic
#400720 #204007 #072040
tetradic
#400720 #3D4007 #074027 #0B0740
square
#400720 #3D4007 #074027 #0B0740
split-complementary
#400720 #07400B #073D40
monochromatic
#1C030E #1C030E #400720 #770D3C #AE1357

Accessibility & contrast

On white

16.55
#400720 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400720
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400720#FFFFFF#000000##FFFFFF
##4007201.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400720;
/* rgb */ color: rgb(64, 7, 32);
/* oklch */ color: oklch(25.0% 0.088 359.7);
Tailwind
colors: {
  custom: {
    50: '#784e5b',
    500: '#400720',
    950: '#000000',
  },
}
SCSS
$custom: #400720;
$custom-light: #784e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#400720",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 32
  },
  "hsl": {
    "h": 333.684,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24952,
    "c": 0.08844,
    "h": 359.7
  },
  "luminance": 0.01346
}

Semantic roles & 50–950 ramp

primary
#400720
secondary
#247F57
accent
#F7A031
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400720

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

Preview Lab → · Contrast checker → · Palette generator →

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