#581C82#581C82

#581C82 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.161 H 306.8°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#581C82
RGBrgb(88, 28, 130)
HSLhsl(275, 65%, 31%)
HSVhsv(275, 78%, 51%)
CMYKcmyk(32.3%, 78.5%, 0%, 49%)
CIE-LABlab(25.31, 45.25, -45.31)
CIE-LCHlch(25.31, 64.03, 314.96°)
OKLaboklab(37.65% 0.0964 -0.1288)
OKLCHoklch(37.65% 0.161 306.8)
XYZxyz(8.4681, 4.5170, 21.5405)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C82 #46821C
analogous
#251C82 #581C82 #821C79
triadic
#581C82 #82581C #1C8258
tetradic
#581C82 #82251C #46821C #1C7982
square
#581C82 #82251C #46821C #1C7982
split-complementary
#581C82 #79821C #1C8225
monochromatic
#14061D #361150 #581C82 #7A27B4 #9942D6

Accessibility & contrast

On white

11.03
#581C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581C82
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C82#FFFFFF#000000##FFFFFF
##581C821.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#51354E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581c82;
/* rgb */ color: rgb(88, 28, 130);
/* oklch */ color: oklch(37.7% 0.161 306.8);
Tailwind
colors: {
  custom: {
    50: '#8c5fa7',
    500: '#581c82',
    950: '#000000',
  },
}
SCSS
$custom: #581c82;
$custom-light: #8c5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#581c82",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 275.294,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37653,
    "c": 0.16093,
    "h": 306.8
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#581C82
secondary
#73B544
accent
#E84085
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C82

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

Preview Lab → · Contrast checker → · Palette generator →

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