#5A1583#5A1583

#5A1583 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.170 H 308.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5A1583
RGBrgb(90, 21, 131)
HSLhsl(278, 72%, 30%)
HSVhsv(278, 84%, 51%)
CMYKcmyk(31.3%, 84%, 0%, 48.6%)
CIE-LABlab(24.79, 48.47, -46.77)
CIE-LCHlch(24.79, 67.36, 316.02°)
OKLaboklab(37.38% 0.1051 -0.133)
OKLCHoklch(37.38% 0.17 308.3)
XYZxyz(8.5805, 4.3488, 21.8557)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1583 #3E8315
analogous
#231583 #5A1583 #831575
triadic
#5A1583 #835A15 #15835A
tetradic
#5A1583 #832315 #3E8315 #157583
square
#5A1583 #832315 #3E8315 #157583
split-complementary
#5A1583 #758315 #158323
monochromatic
#12041A #360D4E #5A1583 #7E1DB8 #9F34DE

Accessibility & contrast

On white

11.23
#5A1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1583
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1583#FFFFFF#000000##FFFFFF
##5A15831.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#53324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1583;
/* rgb */ color: rgb(90, 21, 131);
/* oklch */ color: oklch(37.4% 0.170 308.3);
Tailwind
colors: {
  custom: {
    50: '#8d5da8',
    500: '#5a1583',
    950: '#000000',
  },
}
SCSS
$custom: #5a1583;
$custom-light: #8d5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1583",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 277.636,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3738,
    "c": 0.1695,
    "h": 308.3
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#5A1583
secondary
#6AB83C
accent
#EF397D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1583

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

Preview Lab → · Contrast checker → · Palette generator →

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