#581B96#581B96

#581B96 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.182 H 300.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#581B96
RGBrgb(88, 27, 150)
HSLhsl(270, 69%, 35%)
HSVhsv(270, 82%, 59%)
CMYKcmyk(41.3%, 82%, 0%, 41.2%)
CIE-LABlab(26.91, 50.47, -55.15)
CIE-LCHlch(26.91, 74.76, 312.46°)
OKLaboklab(39.3% 0.0917 -0.1577)
OKLCHoklch(39.3% 0.182 300.2)
XYZxyz(9.9201, 5.0605, 29.3024)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B96 #59961B
analogous
#1B1B96 #581B96 #961B96
triadic
#581B96 #96581B #1B9658
tetradic
#581B96 #961B1B #59961B #1B9696
square
#581B96 #961B1B #59961B #1B9696
split-complementary
#581B96 #96961B #1B961B
monochromatic
#1B082E #3A1262 #581B96 #7624CA #954DDF

Accessibility & contrast

On white

10.44
#581B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#581B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B96
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B96#FFFFFF#000000##FFFFFF
##581B961.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#493E59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581b96;
/* rgb */ color: rgb(88, 27, 150);
/* oklch */ color: oklch(39.3% 0.182 300.2);
Tailwind
colors: {
  custom: {
    50: '#8e60b6',
    500: '#581b96',
    950: '#000000',
  },
}
SCSS
$custom: #581b96;
$custom-light: #8e60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#581b96",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 269.756,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.18246,
    "h": 300.2
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#581B96
secondary
#87C14C
accent
#EC3B95
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581B96

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

Preview Lab → · Contrast checker → · Palette generator →

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