#581E82#581E82

#581E82 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.159 H 306.6°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#581E82
RGBrgb(88, 30, 130)
HSLhsl(275, 63%, 31%)
HSVhsv(275, 77%, 51%)
CMYKcmyk(32.3%, 76.9%, 0%, 49%)
CIE-LABlab(25.61, 44.40, -44.83)
CIE-LCHlch(25.61, 63.09, 314.72°)
OKLaboklab(37.86% 0.0945 -0.1274)
OKLCHoklch(37.86% 0.159 306.6)
XYZxyz(8.5172, 4.6151, 21.5569)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E82 #48821E
analogous
#261E82 #581E82 #821E7A
triadic
#581E82 #82581E #1E8258
tetradic
#581E82 #82261E #48821E #1E7A82
square
#581E82 #82261E #48821E #1E7A82
split-complementary
#581E82 #7A821E #1E8226
monochromatic
#15071F #361350 #581E82 #7A29B4 #9946D4

Accessibility & contrast

On white

10.92
#581E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E82
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E82#FFFFFF#000000##FFFFFF
##581E821.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#51364F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581e82;
/* rgb */ color: rgb(88, 30, 130);
/* oklch */ color: oklch(37.9% 0.159 306.6);
Tailwind
colors: {
  custom: {
    50: '#8c60a7',
    500: '#581e82',
    950: '#000000',
  },
}
SCSS
$custom: #581e82;
$custom-light: #8c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#581e82",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 274.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37862,
    "c": 0.15865,
    "h": 306.6
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#581E82
secondary
#75B547
accent
#E64287
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581E82

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

Preview Lab → · Contrast checker → · Palette generator →

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