#581E7D#581E7D

#581E7D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.153 H 308.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#581E7D
RGBrgb(88, 30, 125)
HSLhsl(277, 61%, 30%)
HSVhsv(277, 76%, 49%)
CMYKcmyk(29.6%, 76%, 0%, 51%)
CIE-LABlab(25.21, 43.21, -42.32)
CIE-LCHlch(25.21, 60.48, 315.60°)
OKLaboklab(37.46% 0.0955 -0.12)
OKLCHoklch(37.46% 0.153 308.5)
XYZxyz(8.1897, 4.4841, 19.8321)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E7D #437D1E
analogous
#291E7D #581E7D #7D1E72
triadic
#581E7D #7D581E #1E7D58
tetradic
#581E7D #7D291E #437D1E #1E727D
square
#581E7D #7D291E #437D1E #1E727D
split-complementary
#581E7D #727D1E #1E7D29
monochromatic
#13061A #35124C #581E7D #7B2AAE #9A43D2

Accessibility & contrast

On white

11.07
#581E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E7D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E7D#FFFFFF#000000##FFFFFF
##581E7D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#52344C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581e7d;
/* rgb */ color: rgb(88, 30, 125);
/* oklch */ color: oklch(37.5% 0.153 308.5);
Tailwind
colors: {
  custom: {
    50: '#8b60a3',
    500: '#581e7d',
    950: '#000000',
  },
}
SCSS
$custom: #581e7d;
$custom-light: #8b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#581e7d",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 276.632,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37457,
    "c": 0.1534,
    "h": 308.5
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#581E7D
secondary
#70B046
accent
#E44382
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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