#401551#401551

#401551 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.109 H 314.8°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#401551
RGBrgb(64, 21, 81)
HSLhsl(283, 59%, 20%)
HSVhsv(283, 74%, 32%)
CMYKcmyk(21%, 74.1%, 0%, 68.2%)
CIE-LABlab(16.60, 31.44, -27.58)
CIE-LCHlch(16.60, 41.82, 318.74°)
OKLaboklab(29.48% 0.077 -0.0776)
OKLCHoklch(29.48% 0.109 314.8)
XYZxyz(3.8675, 2.2205, 8.0079)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401551 #265115
analogous
#221551 #401551 #511544
triadic
#401551 #514015 #155140
tetradic
#401551 #512215 #265115 #154451
square
#401551 #512215 #265115 #154451
split-complementary
#401551 #445115 #155122
monochromatic
#130618 #1A0820 #401551 #662282 #8D2EB2

Accessibility & contrast

On white

14.54
#401551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401551
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401551#FFFFFF#000000##FFFFFF
##4015511.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#132A50
Tritanopia (blue-blind)
#3F2131
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401551;
/* rgb */ color: rgb(64, 21, 81);
/* oklch */ color: oklch(29.5% 0.109 314.8);
Tailwind
colors: {
  custom: {
    50: '#775682',
    500: '#401551',
    950: '#000000',
  },
}
SCSS
$custom: #401551;
$custom-light: #775682;
$custom-dark: #000000;
JSON
{
  "hex": "#401551",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 283,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29482,
    "c": 0.10934,
    "h": 314.8
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#401551
secondary
#508939
accent
#E24672
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401551

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

Preview Lab → · Contrast checker → · Palette generator →

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