#581C87#581C87

#581C87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.166 H 305.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#581C87
RGBrgb(88, 28, 135)
HSLhsl(274, 66%, 32%)
HSVhsv(274, 79%, 53%)
CMYKcmyk(34.8%, 79.3%, 0%, 47.1%)
CIE-LABlab(25.73, 46.44, -47.77)
CIE-LCHlch(25.73, 66.62, 314.19°)
OKLaboklab(38.07% 0.0952 -0.1361)
OKLCHoklch(38.07% 0.166 305)
XYZxyz(8.8119, 4.6545, 23.3512)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C87 #4B871C
analogous
#231C87 #581C87 #871C81
triadic
#581C87 #87581C #1C8758
tetradic
#581C87 #87231C #4B871C #1C8187
square
#581C87 #87231C #4B871C #1C8187
split-complementary
#581C87 #81871C #1C8723
monochromatic
#160722 #371154 #581C87 #7927BA #9845D8

Accessibility & contrast

On white

10.88
#581C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#581C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C87
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C87#FFFFFF#000000##FFFFFF
##581C871.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#4F3851
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581c87;
/* rgb */ color: rgb(88, 28, 135);
/* oklch */ color: oklch(38.1% 0.166 305.0);
Tailwind
colors: {
  custom: {
    50: '#8c60ab',
    500: '#581c87',
    950: '#000000',
  },
}
SCSS
$custom: #581c87;
$custom-light: #8c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581c87",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 273.645,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38074,
    "c": 0.16608,
    "h": 305
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#581C87
secondary
#78BA45
accent
#E93F8A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581C87

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

Preview Lab → · Contrast checker → · Palette generator →

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