#5D27A6#5D27A6

#5D27A6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.188 H 296.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5D27A6
RGBrgb(93, 39, 166)
HSLhsl(266, 62%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(44%, 76.5%, 0%, 34.9%)
CIE-LABlab(30.71, 50.32, -58.63)
CIE-LCHlch(30.71, 77.26, 310.63°)
OKLaboklab(42.54% 0.0849 -0.1679)
OKLCHoklch(42.54% 0.188 296.8)
XYZxyz(12.1208, 6.5311, 36.6910)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D27A6 #70A627
analogous
#2730A6 #5D27A6 #9C27A6
triadic
#5D27A6 #A65D27 #27A65D
tetradic
#5D27A6 #A62730 #70A627 #27A69C
square
#5D27A6 #A62730 #70A627 #27A69C
split-complementary
#5D27A6 #A69C27 #30A627
monochromatic
#251043 #411B74 #5D27A6 #7A3AD1 #9B6BDC

Accessibility & contrast

On white

9.11
#5D27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5D27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D27A6
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D27A6#FFFFFF#000000##FFFFFF
##5D27A61.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#4A4965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d27a6;
/* rgb */ color: rgb(93, 39, 166);
/* oklch */ color: oklch(42.5% 0.188 296.8);
Tailwind
colors: {
  custom: {
    50: '#9267c1',
    500: '#5d27a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d27a6;
$custom-light: #9267c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d27a6",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 265.512,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42544,
    "c": 0.18814,
    "h": 296.8
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#5D27A6
secondary
#9BC366
accent
#E543A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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