#581C81#581C81

#581C81 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.160 H 307.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#581C81
RGBrgb(88, 28, 129)
HSLhsl(276, 64%, 31%)
HSVhsv(276, 78%, 51%)
CMYKcmyk(31.8%, 78.3%, 0%, 49.4%)
CIE-LABlab(25.23, 45.01, -44.81)
CIE-LCHlch(25.23, 63.51, 315.13°)
OKLaboklab(37.57% 0.0967 -0.1274)
OKLCHoklch(37.57% 0.16 307.2)
XYZxyz(8.4014, 4.4903, 21.1887)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C81 #45811C
analogous
#261C81 #581C81 #811C77
triadic
#581C81 #81581C #1C8158
tetradic
#581C81 #81261C #45811C #1C7781
square
#581C81 #81261C #45811C #1C7781
split-complementary
#581C81 #77811C #1C8126
monochromatic
#13061C #36114F #581C81 #7A27B3 #9A42D6

Accessibility & contrast

On white

11.06
#581C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C81
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C81#FFFFFF#000000##FFFFFF
##581C811.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#51354E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581c81;
/* rgb */ color: rgb(88, 28, 129);
/* oklch */ color: oklch(37.6% 0.160 307.2);
Tailwind
colors: {
  custom: {
    50: '#8c5fa6',
    500: '#581c81',
    950: '#000000',
  },
}
SCSS
$custom: #581c81;
$custom-light: #8c5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#581c81",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 275.644,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.15989,
    "h": 307.2
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#581C81
secondary
#72B444
accent
#E74084
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C81

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

Preview Lab → · Contrast checker → · Palette generator →

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