#581871#581871

#581871 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.148 H 314.3°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#581871
RGBrgb(88, 24, 113)
HSLhsl(283, 65%, 27%)
HSVhsv(283, 79%, 44%)
CMYKcmyk(22.1%, 78.8%, 0%, 55.7%)
CIE-LABlab(23.41, 42.98, -37.58)
CIE-LCHlch(23.41, 57.09, 318.84°)
OKLaboklab(35.89% 0.1037 -0.1061)
OKLCHoklch(35.89% 0.148 314.3)
XYZxyz(7.3313, 3.9205, 15.9901)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581871 #317118
analogous
#2C1871 #581871 #71185E
triadic
#581871 #715818 #187158
tetradic
#581871 #712C18 #317118 #185E71
square
#581871 #712C18 #317118 #185E71
split-complementary
#581871 #5E7118 #18712C
monochromatic
#140519 #310D3F #581871 #7F23A3 #A530D3

Accessibility & contrast

On white

11.77
#581871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#581871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581871
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581871#FFFFFF#000000##FFFFFF
##5818711.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#12396F
Tritanopia (blue-blind)
#562C43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581871;
/* rgb */ color: rgb(88, 24, 113);
/* oklch */ color: oklch(35.9% 0.148 314.3);
Tailwind
colors: {
  custom: {
    50: '#8b5d9a',
    500: '#581871',
    950: '#000000',
  },
}
SCSS
$custom: #581871;
$custom-light: #8b5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#581871",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 283.146,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35889,
    "c": 0.14834,
    "h": 314.3
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#581871
secondary
#5CA63E
accent
#E8406F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581871

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

Preview Lab → · Contrast checker → · Palette generator →

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