#571B9D#571B9D

#571B9D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.189 H 297.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#571B9D
RGBrgb(87, 27, 157)
HSLhsl(268, 71%, 36%)
HSVhsv(268, 83%, 62%)
CMYKcmyk(44.6%, 82.8%, 0%, 38.4%)
CIE-LABlab(27.42, 52.05, -58.60)
CIE-LCHlch(27.42, 78.38, 311.61°)
OKLaboklab(39.83% 0.0879 -0.1679)
OKLCHoklch(39.83% 0.189 297.6)
XYZxyz(10.4066, 5.2442, 32.3557)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B9D #619D1B
analogous
#1B209D #571B9D #981B9D
triadic
#571B9D #9D571B #1B9D57
tetradic
#571B9D #9D1B20 #619D1B #1B9D98
square
#571B9D #9D1B20 #619D1B #1B9D98
split-complementary
#571B9D #9D981B #209D1B
monochromatic
#1D0935 #3A1269 #571B9D #7424D1 #9451E1

Accessibility & contrast

On white

10.25
#571B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#571B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B9D
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B9D#FFFFFF#000000##FFFFFF
##571B9D1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#44415D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #571b9d;
/* rgb */ color: rgb(87, 27, 157);
/* oklch */ color: oklch(39.8% 0.189 297.6);
Tailwind
colors: {
  custom: {
    50: '#8e60bb',
    500: '#571b9d',
    950: '#000000',
  },
}
SCSS
$custom: #571b9d;
$custom-light: #8e60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#571b9d",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 267.692,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39828,
    "c": 0.18949,
    "h": 297.6
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#571B9D
secondary
#8EC450
accent
#ED3A9B
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #571B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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