#581B71#581B71

#581B71 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.2% C 0.145 H 314.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#581B71
RGBrgb(88, 27, 113)
HSLhsl(283, 61%, 27%)
HSVhsv(283, 76%, 44%)
CMYKcmyk(22.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(23.84, 41.75, -36.88)
CIE-LCHlch(23.84, 55.70, 318.54°)
OKLaboklab(36.2% 0.1006 -0.104)
OKLCHoklch(36.2% 0.145 314)
XYZxyz(7.3966, 4.0511, 16.0119)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B71 #34711B
analogous
#2D1B71 #581B71 #711B5F
triadic
#581B71 #71581B #1B7158
tetradic
#581B71 #712D1B #34711B #1B5F71
square
#581B71 #712D1B #34711B #1B5F71
split-complementary
#581B71 #5F711B #1B712D
monochromatic
#130619 #320F40 #581B71 #7E27A2 #A337CF

Accessibility & contrast

On white

11.60
#581B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#581B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B71
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B71#FFFFFF#000000##FFFFFF
##581B711.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#153A6F
Tritanopia (blue-blind)
#562E44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581b71;
/* rgb */ color: rgb(88, 27, 113);
/* oklch */ color: oklch(36.2% 0.145 314.0);
Tailwind
colors: {
  custom: {
    50: '#8a5e9a',
    500: '#581b71',
    950: '#000000',
  },
}
SCSS
$custom: #581b71;
$custom-light: #8a5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#581b71",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 282.558,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36195,
    "c": 0.14473,
    "h": 314
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#581B71
secondary
#5FA642
accent
#E54372
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581B71

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

Preview Lab → · Contrast checker → · Palette generator →

#581B71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva