#582281#582281

#582281 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.153 H 306.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#582281
RGBrgb(88, 34, 129)
HSLhsl(274, 58%, 32%)
HSVhsv(274, 74%, 51%)
CMYKcmyk(31.8%, 73.6%, 0%, 49.4%)
CIE-LABlab(26.17, 42.34, -43.29)
CIE-LCHlch(26.17, 60.56, 314.37°)
OKLaboklab(38.23% 0.0906 -0.1229)
OKLCHoklch(38.23% 0.153 306.4)
XYZxyz(8.5581, 4.8038, 21.2410)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582281 #4B8122
analogous
#292281 #582281 #81227B
triadic
#582281 #815822 #228158
tetradic
#582281 #812922 #4B8122 #227B81
square
#582281 #812922 #4B8122 #227B81
split-complementary
#582281 #7B8122 #228129
monochromatic
#160820 #371551 #582281 #792FB1 #984DD0

Accessibility & contrast

On white

10.71
#582281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#582281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582281
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582281#FFFFFF#000000##FFFFFF
##5822811.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#51384F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #582281;
/* rgb */ color: rgb(88, 34, 129);
/* oklch */ color: oklch(38.2% 0.153 306.4);
Tailwind
colors: {
  custom: {
    50: '#8b62a6',
    500: '#582281',
    950: '#000000',
  },
}
SCSS
$custom: #582281;
$custom-light: #8b62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#582281",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 274.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.15269,
    "h": 306.4
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#582281
secondary
#78B34B
accent
#E14689
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #582281

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

Preview Lab → · Contrast checker → · Palette generator →

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