#581171#581171

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

Color values

HEX#581171
RGBrgb(88, 17, 113)
HSLhsl(284, 74%, 25%)
HSVhsv(284, 85%, 44%)
CMYKcmyk(22.1%, 85%, 0%, 55.7%)
CIE-LABlab(22.54, 45.48, -38.97)
CIE-LCHlch(22.54, 59.89, 319.41°)
OKLaboklab(35.28% 0.1099 -0.1101)
OKLCHoklch(35.28% 0.156 314.9)
XYZxyz(7.2051, 3.6681, 15.9481)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581171 #2A7111
analogous
#281171 #581171 #71115A
triadic
#581171 #715811 #117158
tetradic
#581171 #712811 #2A7111 #115A71
square
#581171 #712811 #2A7111 #115A71
split-complementary
#581171 #5A7111 #117128
monochromatic
#15041B #2F093C #581171 #8119A6 #AB21DB

Accessibility & contrast

On white

12.11
#581171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581171
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581171#FFFFFF#000000##FFFFFF
##5811711.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#0A386F
Tritanopia (blue-blind)
#562942
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581171;
/* rgb */ color: rgb(88, 17, 113);
/* oklch */ color: oklch(35.3% 0.156 314.9);
Tailwind
colors: {
  custom: {
    50: '#8b5a9a',
    500: '#581171',
    950: '#000000',
  },
}
SCSS
$custom: #581171;
$custom-light: #8b5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#581171",
  "rgb": {
    "r": 88,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 284.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3528,
    "c": 0.1556,
    "h": 314.9
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#581171
secondary
#53A836
accent
#F13768
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581171

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

Preview Lab → · Contrast checker → · Palette generator →

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