#5A2489#5A2489

#5A2489 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.159 H 304.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5A2489
RGBrgb(90, 36, 137)
HSLhsl(272, 58%, 34%)
HSVhsv(272, 74%, 54%)
CMYKcmyk(34.3%, 73.7%, 0%, 46.3%)
CIE-LABlab(27.41, 43.79, -46.27)
CIE-LCHlch(27.41, 63.70, 313.42°)
OKLaboklab(39.38% 0.09 -0.1316)
OKLCHoklch(39.38% 0.159 304.3)
XYZxyz(9.3617, 5.2416, 24.1806)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2489 #538924
analogous
#272489 #5A2489 #892486
triadic
#5A2489 #895A24 #24895A
tetradic
#5A2489 #892724 #538924 #248689
square
#5A2489 #892724 #538924 #248689
split-complementary
#5A2489 #868924 #248927
monochromatic
#1A0B28 #3A1759 #5A2489 #7A31B9 #9855D2

Accessibility & contrast

On white

10.25
#5A2489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A2489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2489
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2489#FFFFFF#000000##FFFFFF
##5A24891.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#513C54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2489;
/* rgb */ color: rgb(90, 36, 137);
/* oklch */ color: oklch(39.4% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#8d64ac',
    500: '#5a2489',
    950: '#000000',
  },
}
SCSS
$custom: #5a2489;
$custom-light: #8d64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2489",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 272.079,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.15942,
    "h": 304.3
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#5A2489
secondary
#81B752
accent
#E2468F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A2489

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

Preview Lab → · Contrast checker → · Palette generator →

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