#582D8A#582D8A

#582D8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.148 H 301.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#582D8A
RGBrgb(88, 45, 138)
HSLhsl(268, 51%, 36%)
HSVhsv(268, 67%, 54%)
CMYKcmyk(36.2%, 67.4%, 0%, 45.9%)
CIE-LABlab(28.87, 39.05, -44.54)
CIE-LCHlch(28.87, 59.24, 311.24°)
OKLaboklab(40.38% 0.0768 -0.1267)
OKLCHoklch(40.38% 0.148 301.2)
XYZxyz(9.5492, 5.7864, 24.6536)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D8A #5F8A2D
analogous
#2D308A #582D8A #862D8A
triadic
#582D8A #8A582D #2D8A58
tetradic
#582D8A #8A2D30 #5F8A2D #2D8A86
square
#582D8A #8A2D30 #5F8A2D #2D8A86
split-complementary
#582D8A #8A862D #308A2D
monochromatic
#1D0F2E #3B1E5C #582D8A #753CB8 #9565CD

Accessibility & contrast

On white

9.73
#582D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#582D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D8A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D8A#FFFFFF#000000##FFFFFF
##582D8A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#024488
Tritanopia (blue-blind)
#4D4257
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #582d8a;
/* rgb */ color: rgb(88, 45, 138);
/* oklch */ color: oklch(40.4% 0.148 301.2);
Tailwind
colors: {
  custom: {
    50: '#8b69ad',
    500: '#582d8a',
    950: '#000000',
  },
}
SCSS
$custom: #582d8a;
$custom-light: #8b69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#582d8a",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 267.742,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40381,
    "c": 0.14815,
    "h": 301.2
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#582D8A
secondary
#8DB360
accent
#DA4D99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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