#581987#581987

#581987 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.169 H 305.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#581987
RGBrgb(88, 25, 135)
HSLhsl(274, 69%, 31%)
HSVhsv(274, 81%, 53%)
CMYKcmyk(34.8%, 81.5%, 0%, 47.1%)
CIE-LABlab(25.32, 47.62, -48.44)
CIE-LCHlch(25.32, 67.92, 314.51°)
OKLaboklab(37.79% 0.0978 -0.138)
OKLCHoklch(37.79% 0.169 305.3)
XYZxyz(8.7443, 4.5193, 23.3286)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581987 #488719
analogous
#211987 #581987 #87197F
triadic
#581987 #875819 #198758
tetradic
#581987 #872119 #488719 #197F87
square
#581987 #872119 #488719 #197F87
split-complementary
#581987 #7F8719 #198721
monochromatic
#150620 #360F53 #581987 #7A23BB #993FDB

Accessibility & contrast

On white

11.03
#581987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##581987#FFFFFF#000000##FFFFFF
##5819871.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)
#003A8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#4F3650
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581987;
/* rgb */ color: rgb(88, 25, 135);
/* oklch */ color: oklch(37.8% 0.169 305.3);
Tailwind
colors: {
  custom: {
    50: '#8c5eab',
    500: '#581987',
    950: '#000000',
  },
}
SCSS
$custom: #581987;
$custom-light: #8c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#581987",
  "rgb": {
    "r": 88,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 274.364,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.16915,
    "h": 305.3
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#581987
secondary
#75BA41
accent
#EC3C87
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581987

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

Preview Lab → · Contrast checker → · Palette generator →

#581987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva