#582AA2#582AA2

#582AA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.180 H 294.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#582AA2
RGBrgb(88, 42, 162)
HSLhsl(263, 59%, 40%)
HSVhsv(263, 74%, 64%)
CMYKcmyk(45.7%, 74.1%, 0%, 36.5%)
CIE-LABlab(30.25, 47.02, -57.00)
CIE-LCHlch(30.25, 73.89, 309.52°)
OKLaboklab(41.97% 0.0758 -0.1633)
OKLCHoklch(41.97% 0.18 294.9)
XYZxyz(11.3723, 6.3390, 34.7998)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582AA2 #74A22A
analogous
#2A38A2 #582AA2 #942AA2
triadic
#582AA2 #A2582A #2AA258
tetradic
#582AA2 #A22A38 #74A22A #2AA294
square
#582AA2 #A22A38 #74A22A #2AA294
split-complementary
#582AA2 #A2942A #38A22A
monochromatic
#231141 #3E1D71 #582AA2 #743DCD #976DD9

Accessibility & contrast

On white

9.26
#582AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#582AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582AA2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582AA2#FFFFFF#000000##FFFFFF
##582AA21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#434964
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #582aa2;
/* rgb */ color: rgb(88, 42, 162);
/* oklch */ color: oklch(42.0% 0.180 294.9);
Tailwind
colors: {
  custom: {
    50: '#8e68be',
    500: '#582aa2',
    950: '#000000',
  },
}
SCSS
$custom: #582aa2;
$custom-light: #8e68be;
$custom-dark: #000000;
JSON
{
  "hex": "#582aa2",
  "rgb": {
    "r": 88,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 263,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.17998,
    "h": 294.9
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#582AA2
secondary
#9EC068
accent
#E246A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #582AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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