#571B82#571B82

#571B82 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.162 H 306.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#571B82
RGBrgb(87, 27, 130)
HSLhsl(275, 66%, 31%)
HSVhsv(275, 79%, 51%)
CMYKcmyk(33.1%, 79.2%, 0%, 49%)
CIE-LABlab(25.02, 45.47, -45.79)
CIE-LCHlch(25.02, 64.53, 314.80°)
OKLaboklab(37.42% 0.0959 -0.1303)
OKLCHoklch(37.42% 0.162 306.4)
XYZxyz(8.3508, 4.4219, 21.5283)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B82 #46821B
analogous
#231B82 #571B82 #821B79
triadic
#571B82 #82571B #1B8257
tetradic
#571B82 #82231B #46821B #1B7982
square
#571B82 #82231B #46821B #1B7982
split-complementary
#571B82 #79821B #1B8223
monochromatic
#13061D #35104F #571B82 #7926B5 #9840D7

Accessibility & contrast

On white

11.14
#571B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#571B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B82
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B82#FFFFFF#000000##FFFFFF
##571B821.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#4F354E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #571b82;
/* rgb */ color: rgb(87, 27, 130);
/* oklch */ color: oklch(37.4% 0.162 306.4);
Tailwind
colors: {
  custom: {
    50: '#8b5fa7',
    500: '#571b82',
    950: '#000000',
  },
}
SCSS
$custom: #571b82;
$custom-light: #8b5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#571b82",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 274.951,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37417,
    "c": 0.16176,
    "h": 306.4
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#571B82
secondary
#73B643
accent
#E93F86
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571B82

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

Preview Lab → · Contrast checker → · Palette generator →

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