#582498#582498

#582498 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.176 H 298.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#582498
RGBrgb(88, 36, 152)
HSLhsl(267, 62%, 37%)
HSVhsv(267, 76%, 60%)
CMYKcmyk(42.1%, 76.3%, 0%, 40.4%)
CIE-LABlab(28.39, 47.21, -53.95)
CIE-LCHlch(28.39, 71.69, 311.19°)
OKLaboklab(40.39% 0.0837 -0.1543)
OKLCHoklch(40.39% 0.176 298.5)
XYZxyz(10.3214, 5.6033, 30.2374)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582498 #649824
analogous
#242A98 #582498 #922498
triadic
#582498 #985824 #249858
tetradic
#582498 #98242A #649824 #249892
square
#582498 #98242A #649824 #249892
split-complementary
#582498 #989224 #2A9824
monochromatic
#1F0D35 #3B1867 #582498 #7530C9 #955ED9

Accessibility & contrast

On white

9.90
#582498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#582498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582498
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582498#FFFFFF#000000##FFFFFF
##5824981.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#48425C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #582498;
/* rgb */ color: rgb(88, 36, 152);
/* oklch */ color: oklch(40.4% 0.176 298.5);
Tailwind
colors: {
  custom: {
    50: '#8d64b7',
    500: '#582498',
    950: '#000000',
  },
}
SCSS
$custom: #582498;
$custom-light: #8d64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#582498",
  "rgb": {
    "r": 88,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 266.897,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40394,
    "c": 0.17551,
    "h": 298.5
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#582498
secondary
#91BE5A
accent
#E5439C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582498

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

Preview Lab → · Contrast checker → · Palette generator →

#582498 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva