#582A8D#582A8D

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

Color values

HEX#582A8D
RGBrgb(88, 42, 141)
HSLhsl(268, 54%, 36%)
HSVhsv(268, 70%, 55%)
CMYKcmyk(37.6%, 70.2%, 0%, 44.7%)
CIE-LABlab(28.52, 41.43, -46.96)
CIE-LCHlch(28.52, 62.62, 311.42°)
OKLaboklab(40.21% 0.0799 -0.1338)
OKLCHoklch(40.21% 0.156 300.8)
XYZxyz(9.6590, 5.6537, 25.7765)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582A8D #5F8D2A
analogous
#2A2D8D #582A8D #892A8D
triadic
#582A8D #8D582A #2A8D58
tetradic
#582A8D #8D2A2D #5F8D2A #2A8D89
square
#582A8D #8D2A2D #5F8D2A #2A8D89
split-complementary
#582A8D #8D892A #2D8D2A
monochromatic
#1D0E2F #3B1C5E #582A8D #7538BC #9561D0

Accessibility & contrast

On white

9.86
#582A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#582A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582A8D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582A8D#FFFFFF#000000##FFFFFF
##582A8D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#4C4158
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #582a8d;
/* rgb */ color: rgb(88, 42, 141);
/* oklch */ color: oklch(40.2% 0.156 300.8);
Tailwind
colors: {
  custom: {
    50: '#8c67af',
    500: '#582a8d',
    950: '#000000',
  },
}
SCSS
$custom: #582a8d;
$custom-light: #8c67af;
$custom-dark: #000000;
JSON
{
  "hex": "#582a8d",
  "rgb": {
    "r": 88,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 267.879,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.1558,
    "h": 300.8
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#582A8D
secondary
#8DB65D
accent
#DD4A99
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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