#581E7F#581E7F

#581E7F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.155 H 307.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#581E7F
RGBrgb(88, 30, 127)
HSLhsl(276, 62%, 31%)
HSVhsv(276, 76%, 50%)
CMYKcmyk(30.7%, 76.4%, 0%, 50.2%)
CIE-LABlab(25.37, 43.68, -43.33)
CIE-LCHlch(25.37, 61.52, 315.23°)
OKLaboklab(37.62% 0.0951 -0.123)
OKLCHoklch(37.62% 0.156 307.7)
XYZxyz(8.3187, 4.5357, 20.5118)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E7F #457F1E
analogous
#271E7F #581E7F #7F1E75
triadic
#581E7F #7F581E #1E7F58
tetradic
#581E7F #7F271E #457F1E #1E757F
square
#581E7F #7F271E #457F1E #1E757F
split-complementary
#581E7F #757F1E #1E7F27
monochromatic
#13071C #36124D #581E7F #7A2AB1 #9A44D3

Accessibility & contrast

On white

11.01
#581E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#581E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E7F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E7F#FFFFFF#000000##FFFFFF
##581E7F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#52354D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581e7f;
/* rgb */ color: rgb(88, 30, 127);
/* oklch */ color: oklch(37.6% 0.155 307.7);
Tailwind
colors: {
  custom: {
    50: '#8b60a5',
    500: '#581e7f',
    950: '#000000',
  },
}
SCSS
$custom: #581e7f;
$custom-light: #8b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#581e7f",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 275.876,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37618,
    "c": 0.1555,
    "h": 307.7
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#581E7F
secondary
#72B247
accent
#E54384
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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