#400732#400732

#400732 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.099 H 340.3°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400732
RGBrgb(64, 7, 50)
HSLhsl(315, 80%, 14%)
HSVhsv(315, 89%, 25%)
CMYKcmyk(0%, 89.1%, 21.9%, 74.9%)
CIE-LABlab(12.43, 31.24, -12.41)
CIE-LCHlch(12.43, 33.62, 338.33°)
OKLaboklab(25.83% 0.0934 -0.0335)
OKLCHoklch(25.83% 0.099 340.3)
XYZxyz(2.7661, 1.4725, 3.1555)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400732 #074015
analogous
#320740 #400732 #400716
triadic
#400732 #324007 #073240
tetradic
#400732 #403207 #074015 #071640
square
#400732 #403207 #074015 #071640
split-complementary
#400732 #164007 #074032
monochromatic
#1C0316 #1C0316 #400732 #770D5D #AE1388

Accessibility & contrast

On white

16.22
#400732 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400732 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400732
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400732#FFFFFF#000000##FFFFFF
##4007321.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1B33
Deuteranopia (green-blind)
#1F2431
Tritanopia (blue-blind)
#44091C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400732;
/* rgb */ color: rgb(64, 7, 50);
/* oklch */ color: oklch(25.8% 0.099 340.3);
Tailwind
colors: {
  custom: {
    50: '#774e6a',
    500: '#400732',
    950: '#000000',
  },
}
SCSS
$custom: #400732;
$custom-light: #774e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#400732",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 50
  },
  "hsl": {
    "h": 314.737,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.09926,
    "h": 340.3
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#400732
secondary
#247F3A
accent
#F76231
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400732

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

Preview Lab → · Contrast checker → · Palette generator →

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