#5A1987#5A1987

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

Color values

HEX#5A1987
RGBrgb(90, 25, 135)
HSLhsl(275, 69%, 31%)
HSVhsv(275, 81%, 53%)
CMYKcmyk(33.3%, 81.5%, 0%, 47.1%)
CIE-LABlab(25.62, 47.97, -47.94)
CIE-LCHlch(25.62, 67.81, 315.02°)
OKLaboklab(38.06% 0.1008 -0.1364)
OKLCHoklch(38.06% 0.17 306.4)
XYZxyz(8.9363, 4.6183, 23.3376)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1987 #468719
analogous
#231987 #5A1987 #87197D
triadic
#5A1987 #875A19 #19875A
tetradic
#5A1987 #872319 #468719 #197D87
square
#5A1987 #872319 #468719 #197D87
split-complementary
#5A1987 #7D8719 #198723
monochromatic
#150620 #380F53 #5A1987 #7C23BB #9B3FDB

Accessibility & contrast

On white

10.92
#5A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1987
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1987#FFFFFF#000000##FFFFFF
##5A19871.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#523650
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1987;
/* rgb */ color: rgb(90, 25, 135);
/* oklch */ color: oklch(38.1% 0.170 306.4);
Tailwind
colors: {
  custom: {
    50: '#8e5eab',
    500: '#5a1987',
    950: '#000000',
  },
}
SCSS
$custom: #5a1987;
$custom-light: #8e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1987",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 275.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.16963,
    "h": 306.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#5A1987
secondary
#73BA41
accent
#EC3C84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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