#581C8D#581C8D

#581C8D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.172 H 302.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#581C8D
RGBrgb(88, 28, 141)
HSLhsl(272, 67%, 33%)
HSVhsv(272, 80%, 55%)
CMYKcmyk(37.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(26.24, 47.89, -50.68)
CIE-LCHlch(26.24, 69.72, 313.38°)
OKLaboklab(38.59% 0.0936 -0.1446)
OKLCHoklch(38.59% 0.172 302.9)
XYZxyz(9.2463, 4.8283, 25.6390)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C8D #518D1C
analogous
#1F1C8D #581C8D #8D1C89
triadic
#581C8D #8D581C #1C8D58
tetradic
#581C8D #8D1F1C #518D1C #1C898D
square
#581C8D #8D1F1C #518D1C #1C898D
split-complementary
#581C8D #898D1C #1C8D1F
monochromatic
#180827 #38125A #581C8D #7826C0 #9649DB

Accessibility & contrast

On white

10.68
#581C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C8D
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C8D#FFFFFF#000000##FFFFFF
##581C8D1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#4D3A54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581c8d;
/* rgb */ color: rgb(88, 28, 141);
/* oklch */ color: oklch(38.6% 0.172 302.9);
Tailwind
colors: {
  custom: {
    50: '#8d60af',
    500: '#581c8d',
    950: '#000000',
  },
}
SCSS
$custom: #581c8d;
$custom-light: #8d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#581c8d",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 271.858,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.17227,
    "h": 302.9
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#581C8D
secondary
#7FBD48
accent
#EA3E8F
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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