#401575#401575

#401575 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.150 H 297.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#401575
RGBrgb(64, 21, 117)
HSLhsl(267, 70%, 27%)
HSVhsv(267, 82%, 46%)
CMYKcmyk(45.3%, 82.1%, 0%, 54.1%)
CIE-LABlab(19.68, 40.67, -46.37)
CIE-LCHlch(19.68, 61.68, 311.25°)
OKLaboklab(32.62% 0.0692 -0.1328)
OKLCHoklch(32.62% 0.15 297.5)
XYZxyz(5.5926, 2.9106, 17.0933)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401575 #4A7515
analogous
#151A75 #401575 #701575
triadic
#401575 #754015 #157540
tetradic
#401575 #75151A #4A7515 #157570
square
#401575 #75151A #4A7515 #157570
split-complementary
#401575 #757015 #1A7515
monochromatic
#0E051A #240C41 #401575 #5C1EA9 #792BD9

Accessibility & contrast

On white

13.27
#401575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401575
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401575#FFFFFF#000000##FFFFFF
##4015751.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#323045
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401575;
/* rgb */ color: rgb(64, 21, 117);
/* oklch */ color: oklch(32.6% 0.150 297.5);
Tailwind
colors: {
  custom: {
    50: '#7b589e',
    500: '#401575',
    950: '#000000',
  },
}
SCSS
$custom: #401575;
$custom-light: #7b589e;
$custom-dark: #000000;
JSON
{
  "hex": "#401575",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 266.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32616,
    "c": 0.14974,
    "h": 297.5
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#401575
secondary
#79AB3B
accent
#EC3B9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401575

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

Preview Lab → · Contrast checker → · Palette generator →

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