#571D8C#571D8C

#571D8C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.170 H 302.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#571D8C
RGBrgb(87, 29, 140)
HSLhsl(271, 66%, 33%)
HSVhsv(271, 79%, 55%)
CMYKcmyk(37.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(26.15, 47.07, -50.20)
CIE-LCHlch(26.15, 68.81, 313.15°)
OKLaboklab(38.47% 0.0915 -0.1432)
OKLCHoklch(38.47% 0.17 302.6)
XYZxyz(9.1023, 4.7984, 25.2525)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571D8C #528C1D
analogous
#1F1D8C #571D8C #8C1D89
triadic
#571D8C #8C571D #1D8C57
tetradic
#571D8C #8C1F1D #528C1D #1D898C
square
#571D8C #8C1F1D #528C1D #1D898C
split-complementary
#571D8C #898C1D #1D8C1F
monochromatic
#180827 #371259 #571D8C #7728BF #954AD9

Accessibility & contrast

On white

10.72
#571D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#571D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571D8C
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571D8C#FFFFFF#000000##FFFFFF
##571D8C1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#4C3A54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571d8c;
/* rgb */ color: rgb(87, 29, 140);
/* oklch */ color: oklch(38.5% 0.170 302.6);
Tailwind
colors: {
  custom: {
    50: '#8c60ae',
    500: '#571d8c',
    950: '#000000',
  },
}
SCSS
$custom: #571d8c;
$custom-light: #8c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#571d8c",
  "rgb": {
    "r": 87,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 271.351,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.17,
    "h": 302.6
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#571D8C
secondary
#80BC49
accent
#E93F90
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #571D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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