#5D27AE#5D27AE

#5D27AE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.197 H 294.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5D27AE
RGBrgb(93, 39, 174)
HSLhsl(264, 63%, 42%)
HSVhsv(264, 78%, 68%)
CMYKcmyk(46.6%, 77.6%, 0%, 31.8%)
CIE-LABlab(31.43, 52.38, -62.27)
CIE-LCHlch(31.43, 81.38, 310.07°)
OKLaboklab(43.26% 0.0828 -0.1785)
OKLCHoklch(43.26% 0.197 294.9)
XYZxyz(12.8776, 6.8338, 40.6768)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D27AE #78AE27
analogous
#2735AE #5D27AE #A127AE
triadic
#5D27AE #AE5D27 #27AE5D
tetradic
#5D27AE #AE2735 #78AE27 #27AEA1
square
#5D27AE #AE2735 #78AE27 #27AEA1
split-complementary
#5D27AE #AEA127 #35AE27
monochromatic
#28114A #421C7C #5D27AE #7A3ED4 #9D70DF

Accessibility & contrast

On white

8.87
#5D27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D27AE
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D27AE#FFFFFF#000000##FFFFFF
##5D27AE1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#454C6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d27ae;
/* rgb */ color: rgb(93, 39, 174);
/* oklch */ color: oklch(43.3% 0.197 294.9);
Tailwind
colors: {
  custom: {
    50: '#9368c7',
    500: '#5d27ae',
    950: '#000000',
  },
}
SCSS
$custom: #5d27ae;
$custom-light: #9368c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d27ae",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 264,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4326,
    "c": 0.19679,
    "h": 294.9
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#5D27AE
secondary
#A2C66B
accent
#E641A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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