#401552#401552

#401552 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.6% C 0.110 H 314.2°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#401552
RGBrgb(64, 21, 82)
HSLhsl(282, 59%, 20%)
HSVhsv(282, 74%, 32%)
CMYKcmyk(22%, 74.4%, 0%, 67.8%)
CIE-LABlab(16.68, 31.68, -28.14)
CIE-LCHlch(16.68, 42.37, 318.39°)
OKLaboklab(29.56% 0.0769 -0.0792)
OKLCHoklch(29.56% 0.11 314.2)
XYZxyz(3.9053, 2.2356, 8.2068)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401552 #275215
analogous
#211552 #401552 #521545
triadic
#401552 #524015 #155240
tetradic
#401552 #522115 #275215 #154552
square
#401552 #522115 #275215 #154552
split-complementary
#401552 #455215 #155221
monochromatic
#130618 #1A0921 #401552 #662183 #8C2EB3

Accessibility & contrast

On white

14.51
#401552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401552
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401552#FFFFFF#000000##FFFFFF
##4015521.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#122A51
Tritanopia (blue-blind)
#3E2131
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401552;
/* rgb */ color: rgb(64, 21, 82);
/* oklch */ color: oklch(29.6% 0.110 314.2);
Tailwind
colors: {
  custom: {
    50: '#775683',
    500: '#401552',
    950: '#000000',
  },
}
SCSS
$custom: #401552;
$custom-light: #775683;
$custom-dark: #000000;
JSON
{
  "hex": "#401552",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 282.295,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29558,
    "c": 0.11045,
    "h": 314.2
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#401552
secondary
#518A39
accent
#E24574
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401552

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

Preview Lab → · Contrast checker → · Palette generator →

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