#5A1EA7#5A1EA7

#5A1EA7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.198 H 296.2°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5A1EA7
RGBrgb(90, 30, 167)
HSLhsl(266, 70%, 39%)
HSVhsv(266, 82%, 65%)
CMYKcmyk(46.1%, 82%, 0%, 34.5%)
CIE-LABlab(29.14, 53.84, -61.84)
CIE-LCHlch(29.14, 81.99, 311.04°)
OKLaboklab(41.39% 0.0871 -0.1773)
OKLCHoklch(41.39% 0.198 296.2)
XYZxyz(11.6539, 5.8919, 37.0750)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1EA7 #6BA71E
analogous
#1E27A7 #5A1EA7 #9E1EA7
triadic
#5A1EA7 #A75A1E #1EA75A
tetradic
#5A1EA7 #A71E27 #6BA71E #1EA79E
square
#5A1EA7 #A71E27 #6BA71E #1EA79E
split-complementary
#5A1EA7 #A79E1E #27A71E
monochromatic
#220B3F #3E1573 #5A1EA7 #762AD9 #975DE2

Accessibility & contrast

On white

9.64
#5A1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1EA7
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1EA7#FFFFFF#000000##FFFFFF
##5A1EA71.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#444664
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a1ea7;
/* rgb */ color: rgb(90, 30, 167);
/* oklch */ color: oklch(41.4% 0.198 296.2);
Tailwind
colors: {
  custom: {
    50: '#9163c2',
    500: '#5a1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5a1ea7;
$custom-light: #9163c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1ea7",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 266.277,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41389,
    "c": 0.19751,
    "h": 296.2
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#5A1EA7
secondary
#97C65B
accent
#EC3B9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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