#571D8D#571D8D

#571D8D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.171 H 302.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#571D8D
RGBrgb(87, 29, 141)
HSLhsl(271, 66%, 33%)
HSVhsv(271, 79%, 55%)
CMYKcmyk(38.3%, 79.4%, 0%, 44.7%)
CIE-LABlab(26.24, 47.31, -50.68)
CIE-LCHlch(26.24, 69.33, 313.03°)
OKLaboklab(38.56% 0.0913 -0.1447)
OKLCHoklch(38.56% 0.171 302.2)
XYZxyz(9.1764, 4.8280, 25.6426)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571D8D #538D1D
analogous
#1F1D8D #571D8D #8D1D8B
triadic
#571D8D #8D571D #1D8D57
tetradic
#571D8D #8D1F1D #538D1D #1D8B8D
square
#571D8D #8D1F1D #538D1D #1D8B8D
split-complementary
#571D8D #8B8D1D #1D8D1F
monochromatic
#180827 #38135A #571D8D #7627C0 #954BDA

Accessibility & contrast

On white

10.68
#571D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#571D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571D8D
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571D8D#FFFFFF#000000##FFFFFF
##571D8D1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#4B3B55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571d8d;
/* rgb */ color: rgb(87, 29, 141);
/* oklch */ color: oklch(38.6% 0.171 302.2);
Tailwind
colors: {
  custom: {
    50: '#8c60af',
    500: '#571d8d',
    950: '#000000',
  },
}
SCSS
$custom: #571d8d;
$custom-light: #8c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#571d8d",
  "rgb": {
    "r": 87,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 271.071,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38562,
    "c": 0.17105,
    "h": 302.2
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#571D8D
secondary
#81BC4A
accent
#E93F91
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #571D8D

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

Preview Lab → · Contrast checker → · Palette generator →

#571D8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva