#581A80#581A80

#581A80 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 307.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#581A80
RGBrgb(88, 26, 128)
HSLhsl(276, 66%, 30%)
HSVhsv(276, 80%, 50%)
CMYKcmyk(31.3%, 79.7%, 0%, 49.8%)
CIE-LABlab(24.87, 45.59, -44.77)
CIE-LCHlch(24.87, 63.90, 315.52°)
OKLaboklab(37.29% 0.0988 -0.1272)
OKLCHoklch(37.29% 0.161 307.8)
XYZxyz(8.2894, 4.3721, 20.8251)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A80 #42801A
analogous
#251A80 #581A80 #801A75
triadic
#581A80 #80581A #1A8058
tetradic
#581A80 #80251A #42801A #1A7580
square
#581A80 #80251A #42801A #1A7580
split-complementary
#581A80 #75801A #1A8025
monochromatic
#12051A #35104D #581A80 #7B24B3 #9B3DD8

Accessibility & contrast

On white

11.20
#581A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#581A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A80
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A80#FFFFFF#000000##FFFFFF
##581A801.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#51344C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581a80;
/* rgb */ color: rgb(88, 26, 128);
/* oklch */ color: oklch(37.3% 0.161 307.8);
Tailwind
colors: {
  custom: {
    50: '#8c5ea6',
    500: '#581a80',
    950: '#000000',
  },
}
SCSS
$custom: #581a80;
$custom-light: #8c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#581a80",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 276.471,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37288,
    "c": 0.16106,
    "h": 307.8
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#581A80
secondary
#6FB442
accent
#E93F82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A80

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

Preview Lab → · Contrast checker → · Palette generator →

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