#581788#581788

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

Color values

HEX#581788
RGBrgb(88, 23, 136)
HSLhsl(275, 71%, 31%)
HSVhsv(275, 83%, 53%)
CMYKcmyk(35.3%, 83.1%, 0%, 46.7%)
CIE-LABlab(25.15, 48.59, -49.33)
CIE-LCHlch(25.15, 69.24, 314.56°)
OKLaboklab(37.7% 0.0991 -0.1406)
OKLCHoklch(37.7% 0.172 305.2)
XYZxyz(8.7738, 4.4651, 23.6874)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581788 #478817
analogous
#1F1788 #581788 #88177F
triadic
#581788 #885817 #178858
tetradic
#581788 #881F17 #478817 #177F88
square
#581788 #881F17 #478817 #177F88
split-complementary
#581788 #7F8817 #17881F
monochromatic
#14051F #360E54 #581788 #7A20BC #993BDE

Accessibility & contrast

On white

11.09
#581788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581788
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581788#FFFFFF#000000##FFFFFF
##5817881.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#4F3650
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581788;
/* rgb */ color: rgb(88, 23, 136);
/* oklch */ color: oklch(37.7% 0.172 305.2);
Tailwind
colors: {
  custom: {
    50: '#8d5dac',
    500: '#581788',
    950: '#000000',
  },
}
SCSS
$custom: #581788;
$custom-light: #8d5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#581788",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 274.513,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.377,
    "c": 0.17204,
    "h": 305.2
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#581788
secondary
#74BC3F
accent
#EE3A86
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581788

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

Preview Lab → · Contrast checker → · Palette generator →

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