#401574#401574

#401574 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 297.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#401574
RGBrgb(64, 21, 116)
HSLhsl(267, 69%, 27%)
HSVhsv(267, 82%, 45%)
CMYKcmyk(44.8%, 81.9%, 0%, 54.5%)
CIE-LABlab(19.59, 40.40, -45.88)
CIE-LCHlch(19.59, 61.14, 311.37°)
OKLaboklab(32.52% 0.0695 -0.1314)
OKLCHoklch(32.52% 0.149 297.9)
XYZxyz(5.5341, 2.8872, 16.7853)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401574 #497415
analogous
#151A74 #401574 #701574
triadic
#401574 #744015 #157440
tetradic
#401574 #74151A #497415 #157470
square
#401574 #74151A #497415 #157470
split-complementary
#401574 #747015 #1A7415
monochromatic
#0E051A #230C40 #401574 #5D1EA8 #792BD9

Accessibility & contrast

On white

13.31
#401574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401574
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401574#FFFFFF#000000##FFFFFF
##4015741.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#332F44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401574;
/* rgb */ color: rgb(64, 21, 116);
/* oklch */ color: oklch(32.5% 0.149 297.9);
Tailwind
colors: {
  custom: {
    50: '#7b589d',
    500: '#401574',
    950: '#000000',
  },
}
SCSS
$custom: #401574;
$custom-light: #7b589d;
$custom-dark: #000000;
JSON
{
  "hex": "#401574",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 267.158,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3252,
    "c": 0.14863,
    "h": 297.9
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#401574
secondary
#78AA3B
accent
#EC3C9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401574

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

Preview Lab → · Contrast checker → · Palette generator →

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