#5B27AE#5B27AE

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

Color values

HEX#5B27AE
RGBrgb(91, 39, 174)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 78%, 68%)
CMYKcmyk(47.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(31.19, 52.08, -62.68)
CIE-LCHlch(31.19, 81.49, 309.72°)
OKLaboklab(43.04% 0.0797 -0.1798)
OKLCHoklch(43.04% 0.197 293.9)
XYZxyz(12.6778, 6.7308, 40.6674)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27AE #7AAE27
analogous
#2737AE #5B27AE #9F27AE
triadic
#5B27AE #AE5B27 #27AE5B
tetradic
#5B27AE #AE2737 #7AAE27 #27AE9F
square
#5B27AE #AE2737 #7AAE27 #27AE9F
split-complementary
#5B27AE #AE9F27 #37AE27
monochromatic
#27114A #411C7C #5B27AE #783ED4 #9B70DF

Accessibility & contrast

On white

8.95
#5B27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27AE
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27AE#FFFFFF#000000##FFFFFF
##5B27AE1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b27ae;
/* rgb */ color: rgb(91, 39, 174);
/* oklch */ color: oklch(43.0% 0.197 293.9);
Tailwind
colors: {
  custom: {
    50: '#9267c7',
    500: '#5b27ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b27ae;
$custom-light: #9267c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27ae",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 263.111,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43038,
    "c": 0.19668,
    "h": 293.9
  },
  "luminance": 0.06731
}

Semantic roles & 50–950 ramp

primary
#5B27AE
secondary
#A3C66B
accent
#E641A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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