#5A2183#5A2183

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

Color values

HEX#5A2183
RGBrgb(90, 33, 131)
HSLhsl(275, 60%, 32%)
HSVhsv(275, 75%, 51%)
CMYKcmyk(31.3%, 74.8%, 0%, 48.6%)
CIE-LABlab(26.45, 43.71, -44.08)
CIE-LCHlch(26.45, 62.08, 314.76°)
OKLaboklab(38.54% 0.0942 -0.1252)
OKLCHoklch(38.54% 0.157 307)
XYZxyz(8.8562, 4.9002, 21.9476)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2183 #4A8321
analogous
#292183 #5A2183 #83217B
triadic
#5A2183 #835A21 #21835A
tetradic
#5A2183 #832921 #4A8321 #217B83
square
#5A2183 #832921 #4A8321 #217B83
split-complementary
#5A2183 #7B8321 #218329
monochromatic
#170821 #381552 #5A2183 #7C2DB4 #9A4CD2

Accessibility & contrast

On white

10.61
#5A2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2183
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2183#FFFFFF#000000##FFFFFF
##5A21831.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2183;
/* rgb */ color: rgb(90, 33, 131);
/* oklch */ color: oklch(38.5% 0.157 307.0);
Tailwind
colors: {
  custom: {
    50: '#8d62a8',
    500: '#5a2183',
    950: '#000000',
  },
}
SCSS
$custom: #5a2183;
$custom-light: #8d62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2183",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 274.898,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38543,
    "c": 0.15665,
    "h": 307
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#5A2183
secondary
#77B54B
accent
#E34587
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #5A2183

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

Preview Lab → · Contrast checker → · Palette generator →

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