#571171#571171

#571171 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.155 H 314.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#571171
RGBrgb(87, 17, 113)
HSLhsl(284, 74%, 25%)
HSVhsv(284, 85%, 44%)
CMYKcmyk(23%, 85%, 0%, 55.7%)
CIE-LABlab(22.37, 45.29, -39.26)
CIE-LCHlch(22.37, 59.94, 319.08°)
OKLaboklab(35.13% 0.1085 -0.111)
OKLCHoklch(35.13% 0.155 314.4)
XYZxyz(7.1111, 3.6196, 15.9437)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571171 #2B7111
analogous
#271171 #571171 #71115B
triadic
#571171 #715711 #117157
tetradic
#571171 #712711 #2B7111 #115B71
square
#571171 #712711 #2B7111 #115B71
split-complementary
#571171 #5B7111 #117127
monochromatic
#14041B #2E093C #571171 #8019A6 #A921DB

Accessibility & contrast

On white

12.18
#571171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#571171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571171
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571171#FFFFFF#000000##FFFFFF
##5711711.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#542942
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #571171;
/* rgb */ color: rgb(87, 17, 113);
/* oklch */ color: oklch(35.1% 0.155 314.4);
Tailwind
colors: {
  custom: {
    50: '#8a5a9a',
    500: '#571171',
    950: '#000000',
  },
}
SCSS
$custom: #571171;
$custom-light: #8a5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#571171",
  "rgb": {
    "r": 87,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 283.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.15524,
    "h": 314.4
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#571171
secondary
#55A836
accent
#F13769
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #571171

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

Preview Lab → · Contrast checker → · Palette generator →

#571171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva