#581E97#581E97

#581E97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.181 H 299.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#581E97
RGBrgb(88, 30, 151)
HSLhsl(269, 67%, 35%)
HSVhsv(269, 80%, 59%)
CMYKcmyk(41.7%, 80.1%, 0%, 40.8%)
CIE-LABlab(27.40, 49.54, -54.95)
CIE-LCHlch(27.40, 73.99, 312.04°)
OKLaboklab(39.67% 0.0891 -0.1572)
OKLCHoklch(39.67% 0.181 299.5)
XYZxyz(10.0733, 5.2375, 29.7524)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E97 #5D971E
analogous
#1E2197 #581E97 #941E97
triadic
#581E97 #97581E #1E9758
tetradic
#581E97 #971E21 #5D971E #1E9794
square
#581E97 #971E21 #5D971E #1E9794
split-complementary
#581E97 #97941E #21971E
monochromatic
#1C0A31 #3A1464 #581E97 #7628CA #9553DD

Accessibility & contrast

On white

10.26
#581E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#581E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E97
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E97#FFFFFF#000000##FFFFFF
##581E971.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#493F5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581e97;
/* rgb */ color: rgb(88, 30, 151);
/* oklch */ color: oklch(39.7% 0.181 299.5);
Tailwind
colors: {
  custom: {
    50: '#8e61b7',
    500: '#581e97',
    950: '#000000',
  },
}
SCSS
$custom: #581e97;
$custom-light: #8e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#581e97",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 268.76,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39675,
    "c": 0.18067,
    "h": 299.5
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#581E97
secondary
#8BC051
accent
#EA3E97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581E97

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

Preview Lab → · Contrast checker → · Palette generator →

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