#582C8B#582C8B

#582C8B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.151 H 301.1°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#582C8B
RGBrgb(88, 44, 139)
HSLhsl(268, 52%, 36%)
HSVhsv(268, 68%, 55%)
CMYKcmyk(36.7%, 68.3%, 0%, 45.5%)
CIE-LABlab(28.75, 39.85, -45.36)
CIE-LCHlch(28.75, 60.38, 311.30°)
OKLaboklab(40.32% 0.0779 -0.1291)
OKLCHoklch(40.32% 0.151 301.1)
XYZxyz(9.5843, 5.7401, 25.0241)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582C8B #5F8B2C
analogous
#2C2F8B #582C8B #872C8B
triadic
#582C8B #8B582C #2C8B58
tetradic
#582C8B #8B2C2F #5F8B2C #2C8B87
square
#582C8B #8B2C2F #5F8B2C #2C8B87
split-complementary
#582C8B #8B872C #2F8B2C
monochromatic
#1D0F2E #3B1D5D #582C8B #753BB9 #9564CE

Accessibility & contrast

On white

9.78
#582C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#582C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582C8B
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582C8B#FFFFFF#000000##FFFFFF
##582C8B1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#4D4257
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #582c8b;
/* rgb */ color: rgb(88, 44, 139);
/* oklch */ color: oklch(40.3% 0.151 301.1);
Tailwind
colors: {
  custom: {
    50: '#8b68ae',
    500: '#582c8b',
    950: '#000000',
  },
}
SCSS
$custom: #582c8b;
$custom-light: #8b68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#582c8b",
  "rgb": {
    "r": 88,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 267.789,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.15074,
    "h": 301.1
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#582C8B
secondary
#8DB45F
accent
#DB4C99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #582C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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