#582787#582787

#582787 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.153 H 303.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#582787
RGBrgb(88, 39, 135)
HSLhsl(271, 55%, 34%)
HSVhsv(271, 71%, 53%)
CMYKcmyk(34.8%, 71.1%, 0%, 47.1%)
CIE-LABlab(27.50, 41.41, -44.88)
CIE-LCHlch(27.50, 61.06, 312.69°)
OKLaboklab(39.33% 0.0841 -0.1277)
OKLCHoklch(39.33% 0.153 303.4)
XYZxyz(9.1222, 5.2750, 23.4546)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582787 #568727
analogous
#282787 #582787 #872786
triadic
#582787 #875827 #278758
tetradic
#582787 #872827 #568727 #278687
square
#582787 #872827 #568727 #278687
split-complementary
#582787 #868727 #278728
monochromatic
#1A0C28 #391958 #582787 #7735B6 #9559CF

Accessibility & contrast

On white

10.22
#582787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#582787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582787
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582787#FFFFFF#000000##FFFFFF
##5827871.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#4F3D54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #582787;
/* rgb */ color: rgb(88, 39, 135);
/* oklch */ color: oklch(39.3% 0.153 303.4);
Tailwind
colors: {
  custom: {
    50: '#8b65ab',
    500: '#582787',
    950: '#000000',
  },
}
SCSS
$custom: #582787;
$custom-light: #8b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#582787",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 270.625,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39332,
    "c": 0.15287,
    "h": 303.4
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#582787
secondary
#84B456
accent
#DF4992
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582787

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

Preview Lab → · Contrast checker → · Palette generator →

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