#571271#571271

#571271 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.154 H 314.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#571271
RGBrgb(87, 18, 113)
HSLhsl(284, 73%, 26%)
HSVhsv(284, 84%, 44%)
CMYKcmyk(23%, 84.1%, 0%, 55.7%)
CIE-LABlab(22.48, 44.96, -39.08)
CIE-LCHlch(22.48, 59.57, 319.01°)
OKLaboklab(35.21% 0.1077 -0.1105)
OKLCHoklch(35.21% 0.154 314.3)
XYZxyz(7.1269, 3.6514, 15.9489)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571271 #2C7112
analogous
#271271 #571271 #71125B
triadic
#571271 #715712 #127157
tetradic
#571271 #712712 #2C7112 #125B71
square
#571271 #712712 #2C7112 #125B71
split-complementary
#571271 #5B7112 #127127
monochromatic
#14041A #2E0A3C #571271 #801AA6 #A823DB

Accessibility & contrast

On white

12.14
#571271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#571271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571271
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571271#FFFFFF#000000##FFFFFF
##5712711.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #571271;
/* rgb */ color: rgb(87, 18, 113);
/* oklch */ color: oklch(35.2% 0.154 314.3);
Tailwind
colors: {
  custom: {
    50: '#8a5a9a',
    500: '#571271',
    950: '#000000',
  },
}
SCSS
$custom: #571271;
$custom-light: #8a5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#571271",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 283.579,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35205,
    "c": 0.15431,
    "h": 314.3
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#571271
secondary
#56A837
accent
#EF396B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #571271

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

Preview Lab → · Contrast checker → · Palette generator →

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