#5A27AE#5A27AE

#5A27AE is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.197 H 293.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5A27AE
RGBrgb(90, 39, 174)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 78%, 68%)
CMYKcmyk(48.3%, 77.6%, 0%, 31.8%)
CIE-LABlab(31.07, 51.93, -62.88)
CIE-LCHlch(31.07, 81.55, 309.55°)
OKLaboklab(42.93% 0.0782 -0.1804)
OKLCHoklch(42.93% 0.197 293.4)
XYZxyz(12.5798, 6.6803, 40.6628)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A27AE #7BAE27
analogous
#2737AE #5A27AE #9E27AE
triadic
#5A27AE #AE5A27 #27AE5A
tetradic
#5A27AE #AE2737 #7BAE27 #27AE9E
square
#5A27AE #AE2737 #7BAE27 #27AE9E
split-complementary
#5A27AE #AE9E27 #37AE27
monochromatic
#26114A #401C7C #5A27AE #773ED4 #9A70DF

Accessibility & contrast

On white

8.99
#5A27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A27AE
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A27AE#FFFFFF#000000##FFFFFF
##5A27AE1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#404D6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a27ae;
/* rgb */ color: rgb(90, 39, 174);
/* oklch */ color: oklch(42.9% 0.197 293.4);
Tailwind
colors: {
  custom: {
    50: '#9167c7',
    500: '#5a27ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a27ae;
$custom-light: #9167c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a27ae",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 262.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42929,
    "c": 0.19663,
    "h": 293.4
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#5A27AE
secondary
#A4C66B
accent
#E641A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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