#571158#571158

#571158 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.133 H 327.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#571158
RGBrgb(87, 17, 88)
HSLhsl(299, 68%, 21%)
HSVhsv(299, 81%, 35%)
CMYKcmyk(1.1%, 80.7%, 0%, 65.5%)
CIE-LABlab(20.57, 40.28, -25.74)
CIE-LCHlch(20.57, 47.80, 327.42°)
OKLaboklab(33.28% 0.1119 -0.0714)
OKLCHoklch(33.28% 0.133 327.4)
XYZxyz(5.8923, 3.1321, 9.5248)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571158 #125811
analogous
#331158 #571158 #581135
triadic
#571158 #585711 #115857
tetradic
#571158 #583311 #125811 #113558
square
#571158 #583311 #125811 #113558
split-complementary
#571158 #355811 #115833
monochromatic
#19051A #240725 #571158 #8A1B8B #BC25BF

Accessibility & contrast

On white

12.91
#571158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#571158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571158
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571158#FFFFFF#000000##FFFFFF
##5711581.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#243556
Tritanopia (blue-blind)
#5A1D34
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #571158;
/* rgb */ color: rgb(87, 17, 88);
/* oklch */ color: oklch(33.3% 0.133 327.4);
Tailwind
colors: {
  custom: {
    50: '#895887',
    500: '#571158',
    950: '#000000',
  },
}
SCSS
$custom: #571158;
$custom-light: #895887;
$custom-dark: #000000;
JSON
{
  "hex": "#571158",
  "rgb": {
    "r": 87,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 299.155,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33276,
    "c": 0.13272,
    "h": 327.4
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#571158
secondary
#359134
accent
#EA3D40
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #571158

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

Preview Lab → · Contrast checker → · Palette generator →

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