#571173#571173

#571173 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.157 H 313.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#571173
RGBrgb(87, 17, 115)
HSLhsl(283, 74%, 26%)
HSVhsv(283, 85%, 45%)
CMYKcmyk(24.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(22.53, 45.72, -40.29)
CIE-LCHlch(22.53, 60.93, 318.61°)
OKLaboklab(35.29% 0.1081 -0.114)
OKLCHoklch(35.29% 0.157 313.5)
XYZxyz(7.2249, 3.6652, 16.5432)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571173 #2D7311
analogous
#261173 #571173 #73115E
triadic
#571173 #735711 #117357
tetradic
#571173 #732611 #2D7311 #115E73
square
#571173 #732611 #2D7311 #115E73
split-complementary
#571173 #5E7311 #117326
monochromatic
#14041B #2F093E #571173 #7F19A8 #A821DE

Accessibility & contrast

On white

12.12
#571173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #571173
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571173#FFFFFF#000000##FFFFFF
##5711731.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#023771
Tritanopia (blue-blind)
#542A43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #571173;
/* rgb */ color: rgb(87, 17, 115);
/* oklch */ color: oklch(35.3% 0.157 313.5);
Tailwind
colors: {
  custom: {
    50: '#8a5a9c',
    500: '#571173',
    950: '#000000',
  },
}
SCSS
$custom: #571173;
$custom-light: #8a5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#571173",
  "rgb": {
    "r": 87,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 282.857,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35289,
    "c": 0.1571,
    "h": 313.5
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#571173
secondary
#57AA36
accent
#F1376C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #571173

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

Preview Lab → · Contrast checker → · Palette generator →

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