#5A2184#5A2184

#5A2184 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.158 H 306.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2184
RGBrgb(90, 33, 132)
HSLhsl(275, 60%, 32%)
HSVhsv(275, 75%, 52%)
CMYKcmyk(31.8%, 75%, 0%, 48.2%)
CIE-LABlab(26.53, 43.95, -44.58)
CIE-LCHlch(26.53, 62.60, 314.59°)
OKLaboklab(38.62% 0.094 -0.1266)
OKLCHoklch(38.62% 0.158 306.6)
XYZxyz(8.9243, 4.9274, 22.3063)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2184 #4B8421
analogous
#282184 #5A2184 #84217D
triadic
#5A2184 #845A21 #21845A
tetradic
#5A2184 #842821 #4B8421 #217D84
square
#5A2184 #842821 #4B8421 #217D84
split-complementary
#5A2184 #7D8421 #218428
monochromatic
#170922 #391553 #5A2184 #7B2DB5 #9A4DD2

Accessibility & contrast

On white

10.58
#5A2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2184
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2184#FFFFFF#000000##FFFFFF
##5A21841.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#533850
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2184;
/* rgb */ color: rgb(90, 33, 132);
/* oklch */ color: oklch(38.6% 0.158 306.6);
Tailwind
colors: {
  custom: {
    50: '#8d62a8',
    500: '#5a2184',
    950: '#000000',
  },
}
SCSS
$custom: #5a2184;
$custom-light: #8d62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2184",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 274.545,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38623,
    "c": 0.15771,
    "h": 306.6
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#5A2184
secondary
#78B64B
accent
#E34588
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #5A2184

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

Preview Lab → · Contrast checker → · Palette generator →

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