#5A2188#5A2188

#5A2188 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.162 H 305.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5A2188
RGBrgb(90, 33, 136)
HSLhsl(273, 61%, 33%)
HSVhsv(273, 76%, 53%)
CMYKcmyk(33.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(26.85, 44.92, -46.56)
CIE-LCHlch(26.85, 64.70, 313.97°)
OKLaboklab(38.95% 0.0932 -0.1325)
OKLCHoklch(38.95% 0.162 305.1)
XYZxyz(9.2032, 5.0390, 23.7756)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2188 #4F8821
analogous
#262188 #5A2188 #882182
triadic
#5A2188 #885A21 #21885A
tetradic
#5A2188 #882621 #4F8821 #218288
square
#5A2188 #882621 #4F8821 #218288
split-complementary
#5A2188 #828821 #218826
monochromatic
#190925 #391557 #5A2188 #7B2DB9 #994FD4

Accessibility & contrast

On white

10.46
#5A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2188
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2188#FFFFFF#000000##FFFFFF
##5A21881.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#513A53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2188;
/* rgb */ color: rgb(90, 33, 136);
/* oklch */ color: oklch(38.9% 0.162 305.1);
Tailwind
colors: {
  custom: {
    50: '#8d62ab',
    500: '#5a2188',
    950: '#000000',
  },
}
SCSS
$custom: #5a2188;
$custom-light: #8d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2188",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 273.204,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.16198,
    "h": 305.1
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#5A2188
secondary
#7DB84D
accent
#E4448B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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