#401027#401027

#401027 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.079 H 354.4°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#401027
RGBrgb(64, 16, 39)
HSLhsl(331, 60%, 16%)
HSVhsv(331, 75%, 25%)
CMYKcmyk(0%, 75%, 39.1%, 74.9%)
CIE-LABlab(13.28, 25.73, -3.07)
CIE-LCHlch(13.28, 25.91, 353.21°)
OKLaboklab(26.28% 0.0786 -0.0078)
OKLCHoklch(26.28% 0.079 354.4)
XYZxyz(2.6660, 1.6074, 2.0889)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401027 #104029
analogous
#40103F #401027 #401110
triadic
#401027 #274010 #102740
tetradic
#401027 #3F4010 #104029 #111040
square
#401027 #3F4010 #104029 #111040
split-complementary
#401027 #104011 #103F40
monochromatic
#18060F #18060F #401027 #711C45 #A22863

Accessibility & contrast

On white

15.89
#401027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#401027 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401027
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401027#FFFFFF#000000##FFFFFF
##4010271.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181D28
Deuteranopia (green-blind)
#252526
Tritanopia (blue-blind)
#450C19
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401027;
/* rgb */ color: rgb(64, 16, 39);
/* oklch */ color: oklch(26.3% 0.079 354.4);
Tailwind
colors: {
  custom: {
    50: '#775261',
    500: '#401027',
    950: '#000000',
  },
}
SCSS
$custom: #401027;
$custom-light: #775261;
$custom-dark: #000000;
JSON
{
  "hex": "#401027",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 39
  },
  "hsl": {
    "h": 331.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26275,
    "c": 0.07901,
    "h": 354.4
  },
  "luminance": 0.01607
}

Semantic roles & 50–950 ramp

primary
#401027
secondary
#327A57
accent
#E39745
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #401027

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

Preview Lab → · Contrast checker → · Palette generator →

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