#582AAA#582AAA

#582AAA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.189 H 293.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#582AAA
RGBrgb(88, 42, 170)
HSLhsl(262, 60%, 42%)
HSVhsv(262, 75%, 67%)
CMYKcmyk(48.2%, 75.3%, 0%, 33.3%)
CIE-LABlab(30.96, 49.18, -60.67)
CIE-LCHlch(30.96, 78.10, 309.03°)
OKLaboklab(42.69% 0.0738 -0.174)
OKLCHoklch(42.69% 0.189 293)
XYZxyz(12.1061, 6.6325, 38.6648)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582AAA #7CAA2A
analogous
#2A3CAA #582AAA #982AAA
triadic
#582AAA #AA582A #2AAA58
tetradic
#582AAA #AA2A3C #7CAA2A #2AAA98
square
#582AAA #AA2A3C #7CAA2A #2AAA98
split-complementary
#582AAA #AA982A #3CAA2A
monochromatic
#251248 #3F1E79 #582AAA #7441D0 #9872DC

Accessibility & contrast

On white

9.03
#582AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#582AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582AAA
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582AAA#FFFFFF#000000##FFFFFF
##582AAA1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#3E4C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #582aaa;
/* rgb */ color: rgb(88, 42, 170);
/* oklch */ color: oklch(42.7% 0.189 293.0);
Tailwind
colors: {
  custom: {
    50: '#8f68c4',
    500: '#582aaa',
    950: '#000000',
  },
}
SCSS
$custom: #582aaa;
$custom-light: #8f68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#582aaa",
  "rgb": {
    "r": 88,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 261.563,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42686,
    "c": 0.18904,
    "h": 293
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#582AAA
secondary
#A4C36C
accent
#E444AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #582AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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