#401570#401570

#401570 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.144 H 299.4°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#401570
RGBrgb(64, 21, 112)
HSLhsl(268, 68%, 26%)
HSVhsv(268, 81%, 44%)
CMYKcmyk(42.9%, 81.2%, 0%, 56.1%)
CIE-LABlab(19.21, 39.34, -43.92)
CIE-LCHlch(19.21, 58.96, 311.85°)
OKLaboklab(32.14% 0.0708 -0.1256)
OKLCHoklch(32.14% 0.144 299.4)
XYZxyz(5.3064, 2.7961, 15.5862)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401570 #457015
analogous
#151770 #401570 #6D1570
triadic
#401570 #704015 #157040
tetradic
#401570 #701517 #457015 #15706D
square
#401570 #701517 #457015 #15706D
split-complementary
#401570 #706D15 #177015
monochromatic
#0F051A #230B3C #401570 #5D1FA4 #7B29D7

Accessibility & contrast

On white

13.47
#401570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401570
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401570#FFFFFF#000000##FFFFFF
##4015701.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#342E42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401570;
/* rgb */ color: rgb(64, 21, 112);
/* oklch */ color: oklch(32.1% 0.144 299.4);
Tailwind
colors: {
  custom: {
    50: '#7a589a',
    500: '#401570',
    950: '#000000',
  },
}
SCSS
$custom: #401570;
$custom-light: #7a589a;
$custom-dark: #000000;
JSON
{
  "hex": "#401570",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 268.352,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3214,
    "c": 0.14415,
    "h": 299.4
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#401570
secondary
#73A63B
accent
#EB3D99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401570

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

Preview Lab → · Contrast checker → · Palette generator →

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