#401151#401151

#401151 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.115 H 315.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#401151
RGBrgb(64, 17, 81)
HSLhsl(284, 65%, 19%)
HSVhsv(284, 79%, 32%)
CMYKcmyk(21%, 79%, 0%, 68.2%)
CIE-LABlab(15.93, 33.35, -28.67)
CIE-LCHlch(15.93, 43.98, 319.31°)
OKLaboklab(29% 0.0819 -0.0808)
OKLCHoklch(29% 0.115 315.4)
XYZxyz(3.7998, 2.0851, 7.9853)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401151 #225111
analogous
#201151 #401151 #511142
triadic
#401151 #514011 #115140
tetradic
#401151 #512011 #225111 #114251
square
#401151 #512011 #225111 #114251
split-complementary
#401151 #425111 #115120
monochromatic
#140519 #18061E #401151 #681C84 #9026B6

Accessibility & contrast

On white

14.82
#401151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401151
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401151#FFFFFF#000000##FFFFFF
##4011511.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#0F2950
Tritanopia (blue-blind)
#3F1F30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401151;
/* rgb */ color: rgb(64, 17, 81);
/* oklch */ color: oklch(29.0% 0.115 315.4);
Tailwind
colors: {
  custom: {
    50: '#785482',
    500: '#401151',
    950: '#000000',
  },
}
SCSS
$custom: #401151;
$custom-light: #785482;
$custom-dark: #000000;
JSON
{
  "hex": "#401151",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 284.063,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28999,
    "c": 0.115,
    "h": 315.4
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#401151
secondary
#4B8A34
accent
#E8406C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401151

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

Preview Lab → · Contrast checker → · Palette generator →

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