#581887#581887

#581887 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.170 H 305.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#581887
RGBrgb(88, 24, 135)
HSLhsl(275, 70%, 31%)
HSVhsv(275, 82%, 53%)
CMYKcmyk(34.8%, 82.2%, 0%, 47.1%)
CIE-LABlab(25.19, 47.99, -48.65)
CIE-LCHlch(25.19, 68.33, 314.61°)
OKLaboklab(37.7% 0.0986 -0.1386)
OKLCHoklch(37.7% 0.17 305.4)
XYZxyz(8.7233, 4.4773, 23.3216)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581887 #478718
analogous
#211887 #581887 #87187E
triadic
#581887 #875818 #188758
tetradic
#581887 #872118 #478718 #187E87
square
#581887 #872118 #478718 #187E87
split-complementary
#581887 #7E8718 #188721
monochromatic
#14061F #360F53 #581887 #7A21BB #993DDC

Accessibility & contrast

On white

11.08
#581887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581887
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581887#FFFFFF#000000##FFFFFF
##5818871.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.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: #581887;
/* rgb */ color: rgb(88, 24, 135);
/* oklch */ color: oklch(37.7% 0.170 305.4);
Tailwind
colors: {
  custom: {
    50: '#8c5eab',
    500: '#581887',
    950: '#000000',
  },
}
SCSS
$custom: #581887;
$custom-light: #8c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#581887",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 274.595,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37699,
    "c": 0.17012,
    "h": 305.4
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#581887
secondary
#74BB40
accent
#ED3B86
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581887

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

Preview Lab → · Contrast checker → · Palette generator →

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