#582A97#582A97

#582A97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 297.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#582A97
RGBrgb(88, 42, 151)
HSLhsl(265, 56%, 38%)
HSVhsv(265, 72%, 59%)
CMYKcmyk(41.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.32, 44.07, -51.81)
CIE-LCHlch(29.32, 68.02, 310.38°)
OKLaboklab(41.03% 0.0781 -0.148)
OKLCHoklch(41.03% 0.167 297.8)
XYZxyz(10.4369, 5.9648, 29.8736)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582A97 #69972A
analogous
#2A3297 #582A97 #8E2A97
triadic
#582A97 #97582A #2A9758
tetradic
#582A97 #972A32 #69972A #2A978E
square
#582A97 #972A32 #69972A #2A978E
split-complementary
#582A97 #978E2A #32972A
monochromatic
#200F37 #3C1D67 #582A97 #7437C7 #9567D5

Accessibility & contrast

On white

9.58
#582A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#582A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582A97
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582A97#FFFFFF#000000##FFFFFF
##582A971.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#48455D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #582a97;
/* rgb */ color: rgb(88, 42, 151);
/* oklch */ color: oklch(41.0% 0.167 297.8);
Tailwind
colors: {
  custom: {
    50: '#8d68b6',
    500: '#582a97',
    950: '#000000',
  },
}
SCSS
$custom: #582a97;
$custom-light: #8d68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#582a97",
  "rgb": {
    "r": 88,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 265.321,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.16738,
    "h": 297.8
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#582A97
secondary
#95BB62
accent
#E048A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582A97

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

Preview Lab → · Contrast checker → · Palette generator →

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