#5A1988#5A1988

#5A1988 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 306.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5A1988
RGBrgb(90, 25, 136)
HSLhsl(275, 69%, 32%)
HSVhsv(275, 82%, 53%)
CMYKcmyk(33.8%, 81.6%, 0%, 46.7%)
CIE-LABlab(25.70, 48.20, -48.42)
CIE-LCHlch(25.70, 68.32, 314.87°)
OKLaboklab(38.15% 0.1005 -0.1379)
OKLCHoklch(38.15% 0.171 306.1)
XYZxyz(9.0070, 4.6466, 23.7102)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1988 #478819
analogous
#231988 #5A1988 #88197F
triadic
#5A1988 #885A19 #19885A
tetradic
#5A1988 #882319 #478819 #197F88
square
#5A1988 #882319 #478819 #197F88
split-complementary
#5A1988 #7F8819 #198823
monochromatic
#160621 #380F54 #5A1988 #7C23BC #9B40DC

Accessibility & contrast

On white

10.89
#5A1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1988
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1988#FFFFFF#000000##FFFFFF
##5A19881.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#523651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1988;
/* rgb */ color: rgb(90, 25, 136);
/* oklch */ color: oklch(38.1% 0.171 306.1);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5a1988',
    950: '#000000',
  },
}
SCSS
$custom: #5a1988;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1988",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 275.135,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38146,
    "c": 0.17063,
    "h": 306.1
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#5A1988
secondary
#74BB41
accent
#EC3C85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1988

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

Preview Lab → · Contrast checker → · Palette generator →

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