#5A14A1#5A14A1

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

Color values

HEX#5A14A1
RGBrgb(90, 20, 161)
HSLhsl(270, 78%, 35%)
HSVhsv(270, 88%, 63%)
CMYKcmyk(44.1%, 87.6%, 0%, 36.9%)
CIE-LABlab(27.43, 55.72, -61.01)
CIE-LCHlch(27.43, 82.63, 312.40°)
OKLaboklab(40.04% 0.0954 -0.1748)
OKLCHoklch(40.04% 0.199 298.6)
XYZxyz(10.8980, 5.2470, 34.1499)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A14A1 #5BA114
analogous
#1415A1 #5A14A1 #A014A1
triadic
#5A14A1 #A15A14 #14A15A
tetradic
#5A14A1 #A11415 #5BA114 #14A1A0
square
#5A14A1 #A11415 #5BA114 #14A1A0
split-complementary
#5A14A1 #A1A014 #15A114
monochromatic
#1D0634 #3C0D6B #5A14A1 #781BD7 #9747E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A14A1#FFFFFF#000000##FFFFFF
##5A14A11.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)
#0041A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#48405F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a14a1;
/* rgb */ color: rgb(90, 20, 161);
/* oklch */ color: oklch(40.0% 0.199 298.6);
Tailwind
colors: {
  custom: {
    50: '#915ebe',
    500: '#5a14a1',
    950: '#000000',
  },
}
SCSS
$custom: #5a14a1;
$custom-light: #915ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a14a1",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 161
  },
  "hsl": {
    "h": 269.787,
    "s": 77.901,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.19915,
    "h": 298.6
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#5A14A1
secondary
#89C948
accent
#F43395
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A14A1

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

Preview Lab → · Contrast checker → · Palette generator →

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