#401540#401540

#401540 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.091 H 327.7°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#401540
RGBrgb(64, 21, 64)
HSLhsl(300, 51%, 17%)
HSVhsv(300, 67%, 25%)
CMYKcmyk(0%, 67.2%, 0%, 74.9%)
CIE-LABlab(15.47, 27.60, -17.65)
CIE-LCHlch(15.47, 32.76, 327.40°)
OKLaboklab(28.3% 0.0768 -0.0487)
OKLCHoklch(28.3% 0.091 327.7)
XYZxyz(3.3079, 1.9967, 5.0607)
Luminance0.0200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401540 #154015
analogous
#2B1540 #401540 #40152B
triadic
#401540 #404015 #154040
tetradic
#401540 #402B15 #154015 #152B40
square
#401540 #402B15 #154015 #152B40
split-complementary
#401540 #2B4015 #15402B
monochromatic
#170817 #170817 #401540 #6E246E #9C339C

Accessibility & contrast

On white

15.01
#401540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#401540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401540
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401540#FFFFFF#000000##FFFFFF
##4015401.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#421A28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401540;
/* rgb */ color: rgb(64, 21, 64);
/* oklch */ color: oklch(28.3% 0.091 327.7);
Tailwind
colors: {
  custom: {
    50: '#775675',
    500: '#401540',
    950: '#000000',
  },
}
SCSS
$custom: #401540;
$custom-light: #775675;
$custom-dark: #000000;
JSON
{
  "hex": "#401540",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28296,
    "c": 0.09096,
    "h": 327.7
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#401540
secondary
#397839
accent
#DA4E4E
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401540

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

Preview Lab → · Contrast checker → · Palette generator →

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