#581996#581996

#581996 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.184 H 300.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#581996
RGBrgb(88, 25, 150)
HSLhsl(270, 71%, 34%)
HSVhsv(270, 83%, 59%)
CMYKcmyk(41.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(26.65, 51.21, -55.56)
CIE-LCHlch(26.65, 75.56, 312.66°)
OKLaboklab(39.13% 0.0932 -0.1589)
OKLCHoklch(39.13% 0.184 300.4)
XYZxyz(9.8758, 4.9719, 29.2876)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581996 #579619
analogous
#191996 #581996 #961996
triadic
#581996 #965819 #199658
tetradic
#581996 #961919 #579619 #199696
square
#581996 #961919 #579619 #199696
split-complementary
#581996 #969619 #199619
monochromatic
#1A082D #391062 #581996 #7722CA #9549E1

Accessibility & contrast

On white

10.53
#581996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#581996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581996
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581996#FFFFFF#000000##FFFFFF
##5819961.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#493D59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581996;
/* rgb */ color: rgb(88, 25, 150);
/* oklch */ color: oklch(39.1% 0.184 300.4);
Tailwind
colors: {
  custom: {
    50: '#8e5fb6',
    500: '#581996',
    950: '#000000',
  },
}
SCSS
$custom: #581996;
$custom-light: #8e5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#581996",
  "rgb": {
    "r": 88,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 270.24,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39129,
    "c": 0.18423,
    "h": 300.4
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#581996
secondary
#85C249
accent
#EE3A93
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581996

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

Preview Lab → · Contrast checker → · Palette generator →

#581996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva