#581E81#581E81

#581E81 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.158 H 306.9°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#581E81
RGBrgb(88, 30, 129)
HSLhsl(275, 62%, 31%)
HSVhsv(275, 77%, 51%)
CMYKcmyk(31.8%, 76.7%, 0%, 49.4%)
CIE-LABlab(25.53, 44.16, -44.33)
CIE-LCHlch(25.53, 62.57, 314.89°)
OKLaboklab(37.78% 0.0947 -0.126)
OKLCHoklch(37.78% 0.158 306.9)
XYZxyz(8.4504, 4.5883, 21.2051)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E81 #47811E
analogous
#271E81 #581E81 #811E78
triadic
#581E81 #81581E #1E8158
tetradic
#581E81 #81271E #47811E #1E7881
square
#581E81 #81271E #47811E #1E7881
split-complementary
#581E81 #78811E #1E8127
monochromatic
#14071E #36124F #581E81 #7A2AB3 #9946D4

Accessibility & contrast

On white

10.95
#581E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E81
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E81#FFFFFF#000000##FFFFFF
##581E811.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#51364E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581e81;
/* rgb */ color: rgb(88, 30, 129);
/* oklch */ color: oklch(37.8% 0.158 306.9);
Tailwind
colors: {
  custom: {
    50: '#8b60a6',
    500: '#581e81',
    950: '#000000',
  },
}
SCSS
$custom: #581e81;
$custom-light: #8b60a6;
$custom-dark: #000000;
JSON
{
  "hex": "#581e81",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 275.152,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.1576,
    "h": 306.9
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#581E81
secondary
#74B447
accent
#E54286
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581E81

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

Preview Lab → · Contrast checker → · Palette generator →

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