#582D97#582D97

#582D97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.164 H 297.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#582D97
RGBrgb(88, 45, 151)
HSLhsl(264, 54%, 38%)
HSVhsv(264, 70%, 59%)
CMYKcmyk(41.7%, 70.2%, 0%, 40.8%)
CIE-LABlab(29.88, 42.53, -50.92)
CIE-LCHlch(29.88, 66.34, 309.87°)
OKLaboklab(41.42% 0.075 -0.1454)
OKLCHoklch(41.42% 0.164 297.3)
XYZxyz(10.5474, 6.1857, 29.9104)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D97 #6C972D
analogous
#2D3797 #582D97 #8D2D97
triadic
#582D97 #97582D #2D9758
tetradic
#582D97 #972D37 #6C972D #2D978D
square
#582D97 #972D37 #6C972D #2D978D
split-complementary
#582D97 #978D2D #37972D
monochromatic
#211139 #3D1F68 #582D97 #743CC5 #956BD3

Accessibility & contrast

On white

9.39
#582D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#582D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D97
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D97#FFFFFF#000000##FFFFFF
##582D971.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#48475E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #582d97;
/* rgb */ color: rgb(88, 45, 151);
/* oklch */ color: oklch(41.4% 0.164 297.3);
Tailwind
colors: {
  custom: {
    50: '#8d69b6',
    500: '#582d97',
    950: '#000000',
  },
}
SCSS
$custom: #582d97;
$custom-light: #8d69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#582d97",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 264.34,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.16361,
    "h": 297.3
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#582D97
secondary
#98BA66
accent
#DD4AA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582D97

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

Preview Lab → · Contrast checker → · Palette generator →

#582D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva