#571B81#571B81

#571B81 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 306.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#571B81
RGBrgb(87, 27, 129)
HSLhsl(275, 65%, 31%)
HSVhsv(275, 79%, 51%)
CMYKcmyk(32.6%, 79.1%, 0%, 49.4%)
CIE-LABlab(24.94, 45.23, -45.30)
CIE-LCHlch(24.94, 64.01, 314.96°)
OKLaboklab(37.33% 0.0961 -0.1288)
OKLCHoklch(37.33% 0.161 306.7)
XYZxyz(8.2840, 4.3952, 21.1766)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B81 #45811B
analogous
#241B81 #571B81 #811B78
triadic
#571B81 #81571B #1B8157
tetradic
#571B81 #81241B #45811B #1B7881
square
#571B81 #81241B #45811B #1B7881
split-complementary
#571B81 #78811B #1B8124
monochromatic
#13061C #35104E #571B81 #7926B4 #993FD7

Accessibility & contrast

On white

11.18
#571B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #571B81
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B81#FFFFFF#000000##FFFFFF
##571B811.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#50354D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #571b81;
/* rgb */ color: rgb(87, 27, 129);
/* oklch */ color: oklch(37.3% 0.161 306.7);
Tailwind
colors: {
  custom: {
    50: '#8b5fa6',
    500: '#571b81',
    950: '#000000',
  },
}
SCSS
$custom: #571b81;
$custom-light: #8b5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#571b81",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 275.294,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37333,
    "c": 0.16073,
    "h": 306.7
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#571B81
secondary
#72B543
accent
#E83F85
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571B81

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

Preview Lab → · Contrast checker → · Palette generator →

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