#581E8D#581E8D

#581E8D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.170 H 302.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#581E8D
RGBrgb(88, 30, 141)
HSLhsl(271, 65%, 34%)
HSVhsv(271, 79%, 55%)
CMYKcmyk(37.6%, 78.7%, 0%, 44.7%)
CIE-LABlab(26.52, 47.07, -50.21)
CIE-LCHlch(26.52, 68.83, 313.15°)
OKLaboklab(38.79% 0.0919 -0.1432)
OKLCHoklch(38.79% 0.17 302.7)
XYZxyz(9.2953, 4.9263, 25.6553)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E8D #538D1E
analogous
#201E8D #581E8D #8D1E8A
triadic
#581E8D #8D581E #1E8D58
tetradic
#581E8D #8D201E #538D1E #1E8A8D
square
#581E8D #8D201E #538D1E #1E8A8D
split-complementary
#581E8D #8A8D1E #1E8D20
monochromatic
#190928 #39135B #581E8D #7729BF #964CD9

Accessibility & contrast

On white

10.58
#581E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#581E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E8D
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E8D#FFFFFF#000000##FFFFFF
##581E8D1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#4D3B55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581e8d;
/* rgb */ color: rgb(88, 30, 141);
/* oklch */ color: oklch(38.8% 0.170 302.7);
Tailwind
colors: {
  custom: {
    50: '#8d61af',
    500: '#581e8d',
    950: '#000000',
  },
}
SCSS
$custom: #581e8d;
$custom-light: #8d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#581e8d",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 271.351,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.17019,
    "h": 302.7
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#581E8D
secondary
#81BC4B
accent
#E84090
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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