#582D8D#582D8D

#582D8D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.152 H 300.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#582D8D
RGBrgb(88, 45, 141)
HSLhsl(267, 52%, 36%)
HSVhsv(267, 68%, 55%)
CMYKcmyk(37.6%, 68.1%, 0%, 44.7%)
CIE-LABlab(29.09, 39.85, -46.03)
CIE-LCHlch(29.09, 60.88, 310.88°)
OKLaboklab(40.62% 0.0765 -0.1311)
OKLCHoklch(40.62% 0.152 300.3)
XYZxyz(9.7694, 5.8745, 25.8133)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D8D #628D2D
analogous
#2D328D #582D8D #882D8D
triadic
#582D8D #8D582D #2D8D58
tetradic
#582D8D #8D2D32 #628D2D #2D8D88
square
#582D8D #8D2D32 #628D2D #2D8D88
split-complementary
#582D8D #8D882D #328D2D
monochromatic
#1E0F30 #3B1E5F #582D8D #753CBB #9566CE

Accessibility & contrast

On white

9.66
#582D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#582D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D8D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D8D#FFFFFF#000000##FFFFFF
##582D8D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#4C4359
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #582d8d;
/* rgb */ color: rgb(88, 45, 141);
/* oklch */ color: oklch(40.6% 0.152 300.3);
Tailwind
colors: {
  custom: {
    50: '#8c69af',
    500: '#582d8d',
    950: '#000000',
  },
}
SCSS
$custom: #582d8d;
$custom-light: #8c69af;
$custom-dark: #000000;
JSON
{
  "hex": "#582d8d",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 266.875,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40615,
    "c": 0.15173,
    "h": 300.3
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#582D8D
secondary
#8FB561
accent
#DB4D9B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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