#571E8B#571E8B

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

Color values

HEX#571E8B
RGBrgb(87, 30, 139)
HSLhsl(271, 64%, 33%)
HSVhsv(271, 78%, 55%)
CMYKcmyk(37.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(26.21, 46.40, -49.48)
CIE-LCHlch(26.21, 67.83, 313.16°)
OKLaboklab(38.49% 0.0909 -0.1411)
OKLCHoklch(38.49% 0.168 302.8)
XYZxyz(9.0538, 4.8189, 24.8742)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571E8B #528B1E
analogous
#201E8B #571E8B #8B1E88
triadic
#571E8B #8B571E #1E8B57
tetradic
#571E8B #8B201E #528B1E #1E888B
square
#571E8B #8B201E #528B1E #1E888B
split-complementary
#571E8B #888B1E #1E8B20
monochromatic
#180826 #371359 #571E8B #7729BD #954BD8

Accessibility & contrast

On white

10.69
#571E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #571E8B
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571E8B#FFFFFF#000000##FFFFFF
##571E8B1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #571e8b;
/* rgb */ color: rgb(87, 30, 139);
/* oklch */ color: oklch(38.5% 0.168 302.8);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#571e8b',
    950: '#000000',
  },
}
SCSS
$custom: #571e8b;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#571e8b",
  "rgb": {
    "r": 87,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 271.376,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.16789,
    "h": 302.8
  },
  "luminance": 0.04819
}

Semantic roles & 50–950 ramp

primary
#571E8B
secondary
#80BB4A
accent
#E74090
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #571E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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