#5A1989#5A1989

#5A1989 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.172 H 305.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5A1989
RGBrgb(90, 25, 137)
HSLhsl(275, 69%, 32%)
HSVhsv(275, 82%, 54%)
CMYKcmyk(34.3%, 81.8%, 0%, 46.3%)
CIE-LABlab(25.79, 48.43, -48.91)
CIE-LCHlch(25.79, 68.83, 314.72°)
OKLaboklab(38.23% 0.1002 -0.1393)
OKLCHoklch(38.23% 0.172 305.7)
XYZxyz(9.0784, 4.6751, 24.0862)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1989 #488919
analogous
#221989 #5A1989 #891980
triadic
#5A1989 #895A19 #19895A
tetradic
#5A1989 #892219 #488919 #198089
square
#5A1989 #892219 #488919 #198089
split-complementary
#5A1989 #808919 #198922
monochromatic
#160621 #381055 #5A1989 #7C22BD #9B40DC

Accessibility & contrast

On white

10.85
#5A1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1989
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1989#FFFFFF#000000##FFFFFF
##5A19891.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#513751
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1989;
/* rgb */ color: rgb(90, 25, 137);
/* oklch */ color: oklch(38.2% 0.172 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5a1989',
    950: '#000000',
  },
}
SCSS
$custom: #5a1989;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1989",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 274.821,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38232,
    "c": 0.17162,
    "h": 305.7
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#5A1989
secondary
#75BC41
accent
#EC3C86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1989

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

Preview Lab → · Contrast checker → · Palette generator →

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