#5A1590#5A1590

#5A1590 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.182 H 303.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5A1590
RGBrgb(90, 21, 144)
HSLhsl(274, 75%, 32%)
HSVhsv(274, 85%, 56%)
CMYKcmyk(37.5%, 85.4%, 0%, 43.5%)
CIE-LABlab(25.93, 51.44, -53.03)
CIE-LCHlch(25.93, 73.88, 314.13°)
OKLaboklab(38.52% 0.1011 -0.1514)
OKLCHoklch(38.52% 0.182 303.7)
XYZxyz(9.5175, 4.7236, 26.7905)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1590 #4B9015
analogous
#1D1590 #5A1590 #901588
triadic
#5A1590 #905A15 #15905A
tetradic
#5A1590 #901D15 #4B9015 #158890
square
#5A1590 #901D15 #4B9015 #158890
split-complementary
#5A1590 #889015 #15901D
monochromatic
#170525 #390D5B #5A1590 #7B1DC5 #9A3DE3

Accessibility & contrast

On white

10.80
#5A1590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1590
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1590#FFFFFF#000000##FFFFFF
##5A15901.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#4F3855
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1590;
/* rgb */ color: rgb(90, 21, 144);
/* oklch */ color: oklch(38.5% 0.182 303.7);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5a1590',
    950: '#000000',
  },
}
SCSS
$custom: #5a1590;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1590",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 144
  },
  "hsl": {
    "h": 273.659,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38522,
    "c": 0.18201,
    "h": 303.7
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#5A1590
secondary
#78C23E
accent
#F13789
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1590

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

Preview Lab → · Contrast checker → · Palette generator →

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