#571D8E#571D8E

#571D8E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.172 H 301.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#571D8E
RGBrgb(87, 29, 142)
HSLhsl(271, 66%, 34%)
HSVhsv(271, 80%, 56%)
CMYKcmyk(38.7%, 79.6%, 0%, 44.3%)
CIE-LABlab(26.33, 47.56, -51.16)
CIE-LCHlch(26.33, 69.85, 312.91°)
OKLaboklab(38.65% 0.091 -0.1461)
OKLCHoklch(38.65% 0.172 301.9)
XYZxyz(9.2511, 4.8579, 26.0362)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571D8E #548E1D
analogous
#1E1D8E #571D8E #8E1D8C
triadic
#571D8E #8E571D #1D8E57
tetradic
#571D8E #8E1E1D #548E1D #1D8C8E
square
#571D8E #8E1E1D #548E1D #1D8C8E
split-complementary
#571D8E #8C8E1D #1D8E1E
monochromatic
#190828 #38135B #571D8E #7627C1 #954BDA

Accessibility & contrast

On white

10.65
#571D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #571D8E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571D8E#FFFFFF#000000##FFFFFF
##571D8E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #571d8e;
/* rgb */ color: rgb(87, 29, 142);
/* oklch */ color: oklch(38.6% 0.172 301.9);
Tailwind
colors: {
  custom: {
    50: '#8c60b0',
    500: '#571d8e',
    950: '#000000',
  },
}
SCSS
$custom: #571d8e;
$custom-light: #8c60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#571d8e",
  "rgb": {
    "r": 87,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 270.796,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3865,
    "c": 0.17209,
    "h": 301.9
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#571D8E
secondary
#82BD4A
accent
#E93F92
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #571D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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