#581B80#581B80

#581B80 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.160 H 307.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#581B80
RGBrgb(88, 27, 128)
HSLhsl(276, 65%, 30%)
HSVhsv(276, 79%, 50%)
CMYKcmyk(31.3%, 78.9%, 0%, 49.8%)
CIE-LABlab(25.01, 45.19, -44.55)
CIE-LCHlch(25.01, 63.45, 315.41°)
OKLaboklab(37.39% 0.0978 -0.1266)
OKLCHoklch(37.39% 0.16 307.7)
XYZxyz(8.3119, 4.4172, 20.8326)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B80 #43801B
analogous
#261B80 #581B80 #801B75
triadic
#581B80 #80581B #1B8058
tetradic
#581B80 #80261B #43801B #1B7580
square
#581B80 #80261B #43801B #1B7580
split-complementary
#581B80 #75801B #1B8026
monochromatic
#13061B #35104D #581B80 #7B26B3 #9A3FD6

Accessibility & contrast

On white

11.15
#581B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B80
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B80#FFFFFF#000000##FFFFFF
##581B801.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581b80;
/* rgb */ color: rgb(88, 27, 128);
/* oklch */ color: oklch(37.4% 0.160 307.7);
Tailwind
colors: {
  custom: {
    50: '#8c5fa6',
    500: '#581b80',
    950: '#000000',
  },
}
SCSS
$custom: #581b80;
$custom-light: #8c5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#581b80",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 276.238,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37387,
    "c": 0.15998,
    "h": 307.7
  },
  "luminance": 0.04417
}

Semantic roles & 50–950 ramp

primary
#581B80
secondary
#70B443
accent
#E84082
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B80

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

Preview Lab → · Contrast checker → · Palette generator →

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