#5A2182#5A2182

#5A2182 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.156 H 307.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5A2182
RGBrgb(90, 33, 130)
HSLhsl(275, 60%, 32%)
HSVhsv(275, 75%, 51%)
CMYKcmyk(30.8%, 74.6%, 0%, 49%)
CIE-LABlab(26.37, 43.47, -43.58)
CIE-LCHlch(26.37, 61.55, 314.93°)
OKLaboklab(38.46% 0.0944 -0.1237)
OKLCHoklch(38.46% 0.156 307.3)
XYZxyz(8.7887, 4.8732, 21.5924)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2182 #498221
analogous
#2A2182 #5A2182 #82217A
triadic
#5A2182 #825A21 #21825A
tetradic
#5A2182 #822A21 #498221 #217A82
square
#5A2182 #822A21 #498221 #217A82
split-complementary
#5A2182 #7A8221 #21822A
monochromatic
#160820 #381551 #5A2182 #7C2DB3 #9A4CD2

Accessibility & contrast

On white

10.64
#5A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2182
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2182#FFFFFF#000000##FFFFFF
##5A21821.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2182;
/* rgb */ color: rgb(90, 33, 130);
/* oklch */ color: oklch(38.5% 0.156 307.3);
Tailwind
colors: {
  custom: {
    50: '#8d62a7',
    500: '#5a2182',
    950: '#000000',
  },
}
SCSS
$custom: #5a2182;
$custom-light: #8d62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2182",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 275.258,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38463,
    "c": 0.15559,
    "h": 307.3
  },
  "luminance": 0.04873
}

Semantic roles & 50–950 ramp

primary
#5A2182
secondary
#76B44A
accent
#E34586
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5A2182

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

Preview Lab → · Contrast checker → · Palette generator →

#5A2182 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva