#5A1483#5A1483

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

Color values

HEX#5A1483
RGBrgb(90, 20, 131)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 51%)
CMYKcmyk(31.3%, 84.7%, 0%, 48.6%)
CIE-LABlab(24.68, 48.80, -46.95)
CIE-LCHlch(24.68, 67.72, 316.10°)
OKLaboklab(37.3% 0.1058 -0.1335)
OKLCHoklch(37.3% 0.17 308.4)
XYZxyz(8.5625, 4.3128, 21.8497)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1483 #3D8314
analogous
#231483 #5A1483 #831475
triadic
#5A1483 #835A14 #14835A
tetradic
#5A1483 #832314 #3D8314 #147583
square
#5A1483 #832314 #3D8314 #147583
split-complementary
#5A1483 #758314 #148323
monochromatic
#12041B #360C4E #5A1483 #7E1CB8 #9F32E0

Accessibility & contrast

On white

11.27
#5A1483 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A1483 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1483
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1483#FFFFFF#000000##FFFFFF
##5A14831.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.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: #5a1483;
/* rgb */ color: rgb(90, 20, 131);
/* oklch */ color: oklch(37.3% 0.170 308.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ca8',
    500: '#5a1483',
    950: '#000000',
  },
}
SCSS
$custom: #5a1483;
$custom-light: #8e5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1483",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 131
  },
  "hsl": {
    "h": 277.838,
    "s": 73.51,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.17038,
    "h": 308.4
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#5A1483
secondary
#69B83B
accent
#F0387C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1483

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

Preview Lab → · Contrast checker → · Palette generator →

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