#582182#582182

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

Color values

HEX#582182
RGBrgb(88, 33, 130)
HSLhsl(274, 60%, 32%)
HSVhsv(274, 75%, 51%)
CMYKcmyk(32.3%, 74.6%, 0%, 49%)
CIE-LABlab(26.08, 43.05, -44.06)
CIE-LCHlch(26.08, 61.60, 314.34°)
OKLaboklab(38.2% 0.0915 -0.1252)
OKLCHoklch(38.2% 0.155 306.2)
XYZxyz(8.5967, 4.7742, 21.5834)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582182 #4B8221
analogous
#282182 #582182 #82217C
triadic
#582182 #825821 #218258
tetradic
#582182 #822821 #4B8221 #217C82
square
#582182 #822821 #4B8221 #217C82
split-complementary
#582182 #7C8221 #218228
monochromatic
#160820 #371551 #582182 #792DB3 #984CD2

Accessibility & contrast

On white

10.74
#582182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#582182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582182
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582182#FFFFFF#000000##FFFFFF
##5821821.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #582182;
/* rgb */ color: rgb(88, 33, 130);
/* oklch */ color: oklch(38.2% 0.155 306.2);
Tailwind
colors: {
  custom: {
    50: '#8b62a7',
    500: '#582182',
    950: '#000000',
  },
}
SCSS
$custom: #582182;
$custom-light: #8b62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#582182",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 274.021,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38197,
    "c": 0.15504,
    "h": 306.2
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#582182
secondary
#78B44A
accent
#E34589
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #582182

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

Preview Lab → · Contrast checker → · Palette generator →

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