#582791#582791

#582791 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.164 H 300.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#582791
RGBrgb(88, 39, 145)
HSLhsl(268, 58%, 36%)
HSVhsv(268, 73%, 57%)
CMYKcmyk(39.3%, 73.1%, 0%, 43.1%)
CIE-LABlab(28.30, 43.98, -49.79)
CIE-LCHlch(28.30, 66.44, 311.45°)
OKLaboklab(40.15% 0.0824 -0.1421)
OKLCHoklch(40.15% 0.164 300.1)
XYZxyz(9.8596, 5.5700, 27.3382)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582791 #609127
analogous
#272B91 #582791 #8D2791
triadic
#582791 #915827 #279158
tetradic
#582791 #91272B #609127 #27918D
square
#582791 #91272B #609127 #27918D
split-complementary
#582791 #918D27 #2B9127
monochromatic
#1D0D31 #3B1A61 #582791 #7534C1 #955FD4

Accessibility & contrast

On white

9.93
#582791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#582791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582791
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582791#FFFFFF#000000##FFFFFF
##5827911.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#4B4159
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #582791;
/* rgb */ color: rgb(88, 39, 145);
/* oklch */ color: oklch(40.1% 0.164 300.1);
Tailwind
colors: {
  custom: {
    50: '#8c66b2',
    500: '#582791',
    950: '#000000',
  },
}
SCSS
$custom: #582791;
$custom-light: #8c66b2;
$custom-dark: #000000;
JSON
{
  "hex": "#582791",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 267.736,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40148,
    "c": 0.16422,
    "h": 300.1
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#582791
secondary
#8DB95B
accent
#E1479A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582791

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

Preview Lab → · Contrast checker → · Palette generator →

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