#581C80#581C80

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

Color values

HEX#581C80
RGBrgb(88, 28, 128)
HSLhsl(276, 64%, 31%)
HSVhsv(276, 78%, 50%)
CMYKcmyk(31.3%, 78.1%, 0%, 49.8%)
CIE-LABlab(25.15, 44.77, -44.31)
CIE-LCHlch(25.15, 63.00, 315.30°)
OKLaboklab(37.49% 0.0969 -0.1259)
OKLCHoklch(37.49% 0.159 307.6)
XYZxyz(8.3352, 4.4638, 20.8404)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C80 #44801C
analogous
#261C80 #581C80 #801C76
triadic
#581C80 #80581C #1C8058
tetradic
#581C80 #80261C #44801C #1C7680
square
#581C80 #80261C #44801C #1C7680
split-complementary
#581C80 #76801C #1C8026
monochromatic
#13061C #35114E #581C80 #7B27B2 #9A41D5

Accessibility & contrast

On white

11.09
#581C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C80
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C80#FFFFFF#000000##FFFFFF
##581C801.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#51354D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581c80;
/* rgb */ color: rgb(88, 28, 128);
/* oklch */ color: oklch(37.5% 0.159 307.6);
Tailwind
colors: {
  custom: {
    50: '#8b5fa6',
    500: '#581c80',
    950: '#000000',
  },
}
SCSS
$custom: #581c80;
$custom-light: #8b5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#581c80",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 276,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.15886,
    "h": 307.6
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#581C80
secondary
#71B344
accent
#E74183
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C80

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

Preview Lab → · Contrast checker → · Palette generator →

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