#581787#581787

#581787 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 305.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#581787
RGBrgb(88, 23, 135)
HSLhsl(275, 71%, 31%)
HSVhsv(275, 83%, 53%)
CMYKcmyk(34.8%, 83%, 0%, 47.1%)
CIE-LABlab(25.07, 48.35, -48.85)
CIE-LCHlch(25.07, 68.73, 314.71°)
OKLaboklab(37.61% 0.0994 -0.1392)
OKLCHoklch(37.61% 0.171 305.5)
XYZxyz(8.7031, 4.4368, 23.3149)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581787 #468717
analogous
#201787 #581787 #87177E
triadic
#581787 #875817 #178758
tetradic
#581787 #872017 #468717 #177E87
square
#581787 #872017 #468717 #177E87
split-complementary
#581787 #7E8717 #178720
monochromatic
#14051E #360E53 #581787 #7A20BB #993BDE

Accessibility & contrast

On white

11.13
#581787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581787
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581787#FFFFFF#000000##FFFFFF
##5817871.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#4F3550
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581787;
/* rgb */ color: rgb(88, 23, 135);
/* oklch */ color: oklch(37.6% 0.171 305.5);
Tailwind
colors: {
  custom: {
    50: '#8c5dab',
    500: '#581787',
    950: '#000000',
  },
}
SCSS
$custom: #581787;
$custom-light: #8c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#581787",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 274.821,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37613,
    "c": 0.17106,
    "h": 305.5
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#581787
secondary
#73BB3F
accent
#EE3A85
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581787

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

Preview Lab → · Contrast checker → · Palette generator →

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