#582D8E#582D8E

#582D8E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.153 H 299.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#582D8E
RGBrgb(88, 45, 142)
HSLhsl(267, 52%, 37%)
HSVhsv(267, 68%, 56%)
CMYKcmyk(38%, 68.3%, 0%, 44.3%)
CIE-LABlab(29.17, 40.11, -46.53)
CIE-LCHlch(29.17, 61.43, 310.76°)
OKLaboklab(40.69% 0.0763 -0.1325)
OKLCHoklch(40.69% 0.153 299.9)
XYZxyz(9.8442, 5.9044, 26.2070)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D8E #638E2D
analogous
#2D338E #582D8E #892D8E
triadic
#582D8E #8E582D #2D8E58
tetradic
#582D8E #8E2D33 #638E2D #2D8E89
square
#582D8E #8E2D33 #638E2D #2D8E89
split-complementary
#582D8E #8E892D #338E2D
monochromatic
#1E1031 #3B1E60 #582D8E #753CBC #9567CF

Accessibility & contrast

On white

9.63
#582D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#582D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D8E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D8E#FFFFFF#000000##FFFFFF
##582D8E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #582d8e;
/* rgb */ color: rgb(88, 45, 142);
/* oklch */ color: oklch(40.7% 0.153 299.9);
Tailwind
colors: {
  custom: {
    50: '#8c69b0',
    500: '#582d8e',
    950: '#000000',
  },
}
SCSS
$custom: #582d8e;
$custom-light: #8c69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#582d8e",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 266.598,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40694,
    "c": 0.15292,
    "h": 299.9
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#582D8E
secondary
#90B561
accent
#DB4C9C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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