#581C8B#581C8B

#581C8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.170 H 303.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#581C8B
RGBrgb(88, 28, 139)
HSLhsl(272, 66%, 33%)
HSVhsv(272, 80%, 55%)
CMYKcmyk(36.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(26.07, 47.40, -49.71)
CIE-LCHlch(26.07, 68.69, 313.64°)
OKLaboklab(38.42% 0.0942 -0.1418)
OKLCHoklch(38.42% 0.17 303.6)
XYZxyz(9.0989, 4.7693, 24.8623)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C8B #4F8B1C
analogous
#201C8B #581C8B #8B1C87
triadic
#581C8B #8B581C #1C8B58
tetradic
#581C8B #8B201C #4F8B1C #1C878B
square
#581C8B #8B201C #4F8B1C #1C878B
split-complementary
#581C8B #878B1C #1C8B20
monochromatic
#180725 #381258 #581C8B #7826BE #9747DA

Accessibility & contrast

On white

10.75
#581C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#581C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C8B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C8B#FFFFFF#000000##FFFFFF
##581C8B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#4E3953
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581c8b;
/* rgb */ color: rgb(88, 28, 139);
/* oklch */ color: oklch(38.4% 0.170 303.6);
Tailwind
colors: {
  custom: {
    50: '#8d60ae',
    500: '#581c8b',
    950: '#000000',
  },
}
SCSS
$custom: #581c8b;
$custom-light: #8d60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581c8b",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 272.432,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38418,
    "c": 0.1702,
    "h": 303.6
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#581C8B
secondary
#7DBC47
accent
#E93E8D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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