#571172#571172

#571172 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.2% C 0.156 H 313.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#571172
RGBrgb(87, 17, 114)
HSLhsl(283, 74%, 26%)
HSVhsv(283, 85%, 45%)
CMYKcmyk(23.7%, 85.1%, 0%, 55.3%)
CIE-LABlab(22.45, 45.50, -39.77)
CIE-LCHlch(22.45, 60.44, 318.84°)
OKLaboklab(35.21% 0.1083 -0.1125)
OKLCHoklch(35.21% 0.156 313.9)
XYZxyz(7.1677, 3.6423, 16.2418)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571172 #2C7211
analogous
#261172 #571172 #72115C
triadic
#571172 #725711 #117257
tetradic
#571172 #722611 #2C7211 #115C72
square
#571172 #722611 #2C7211 #115C72
split-complementary
#571172 #5C7211 #117226
monochromatic
#14041B #2E093D #571172 #8019A7 #A821DD

Accessibility & contrast

On white

12.15
#571172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #571172
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571172#FFFFFF#000000##FFFFFF
##5711721.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#053770
Tritanopia (blue-blind)
#542943
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #571172;
/* rgb */ color: rgb(87, 17, 114);
/* oklch */ color: oklch(35.2% 0.156 313.9);
Tailwind
colors: {
  custom: {
    50: '#8a5a9b',
    500: '#571172',
    950: '#000000',
  },
}
SCSS
$custom: #571172;
$custom-light: #8a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#571172",
  "rgb": {
    "r": 87,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 283.299,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35208,
    "c": 0.15617,
    "h": 313.9
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#571172
secondary
#56A936
accent
#F1376B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #571172

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

Preview Lab → · Contrast checker → · Palette generator →

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