#582D87#582D87

#582D87 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.145 H 302.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#582D87
RGBrgb(88, 45, 135)
HSLhsl(269, 50%, 35%)
HSVhsv(269, 67%, 53%)
CMYKcmyk(34.8%, 66.7%, 0%, 47.1%)
CIE-LABlab(28.64, 38.26, -43.04)
CIE-LCHlch(28.64, 57.58, 311.63°)
OKLaboklab(40.15% 0.0771 -0.1222)
OKLCHoklch(40.15% 0.145 302.2)
XYZxyz(9.3350, 5.7007, 23.5255)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D87 #5C872D
analogous
#2D2F87 #582D87 #852D87
triadic
#582D87 #87582D #2D8758
tetradic
#582D87 #872D2F #5C872D #2D8785
square
#582D87 #872D2F #5C872D #2D8785
split-complementary
#582D87 #87852D #2F872D
monochromatic
#1C0E2B #3A1E59 #582D87 #763CB5 #9563CB

Accessibility & contrast

On white

9.81
#582D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#582D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D87
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D87#FFFFFF#000000##FFFFFF
##582D871.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#0B4385
Tritanopia (blue-blind)
#4F4156
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #582d87;
/* rgb */ color: rgb(88, 45, 135);
/* oklch */ color: oklch(40.2% 0.145 302.2);
Tailwind
colors: {
  custom: {
    50: '#8b69ab',
    500: '#582d87',
    950: '#000000',
  },
}
SCSS
$custom: #582d87;
$custom-light: #8b69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#582d87",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 268.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4015,
    "c": 0.14454,
    "h": 302.2
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#582D87
secondary
#8AB25E
accent
#DA4E97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582D87

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

Preview Lab → · Contrast checker → · Palette generator →

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