#581581#581581

#581581 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.167 H 307.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#581581
RGBrgb(88, 21, 129)
HSLhsl(277, 72%, 29%)
HSVhsv(277, 84%, 51%)
CMYKcmyk(31.8%, 83.7%, 0%, 49.4%)
CIE-LABlab(24.31, 47.67, -46.31)
CIE-LCHlch(24.31, 66.46, 315.83°)
OKLaboklab(36.93% 0.1027 -0.1317)
OKLCHoklch(36.93% 0.167 307.9)
XYZxyz(8.2543, 4.1961, 21.1397)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581581 #3E8115
analogous
#221581 #581581 #811574
triadic
#581581 #815815 #158158
tetradic
#581581 #812215 #3E8115 #157481
square
#581581 #812215 #3E8115 #157481
split-complementary
#581581 #748115 #158122
monochromatic
#12041A #340C4C #581581 #7C1EB6 #9D33DE

Accessibility & contrast

On white

11.42
#581581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#581581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581581
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581581#FFFFFF#000000##FFFFFF
##5815811.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#51324C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581581;
/* rgb */ color: rgb(88, 21, 129);
/* oklch */ color: oklch(36.9% 0.167 307.9);
Tailwind
colors: {
  custom: {
    50: '#8c5ca6',
    500: '#581581',
    950: '#000000',
  },
}
SCSS
$custom: #581581;
$custom-light: #8c5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#581581",
  "rgb": {
    "r": 88,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 277.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.16704,
    "h": 307.9
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#581581
secondary
#6AB63C
accent
#EF397E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D040F
muted
#7D797F

Preview Lab

Preview with #581581

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

Preview Lab → · Contrast checker → · Palette generator →

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