#5E27AD#5E27AD

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

Color values

HEX#5E27AD
RGBrgb(94, 39, 173)
HSLhsl(265, 63%, 42%)
HSVhsv(265, 77%, 68%)
CMYKcmyk(45.7%, 77.5%, 0%, 32.2%)
CIE-LABlab(31.46, 52.28, -61.62)
CIE-LCHlch(31.46, 80.81, 310.31°)
OKLaboklab(43.28% 0.0845 -0.1766)
OKLCHoklch(43.28% 0.196 295.6)
XYZxyz(12.8824, 6.8475, 40.1700)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27AD #76AD27
analogous
#2733AD #5E27AD #A127AD
triadic
#5E27AD #AD5E27 #27AD5E
tetradic
#5E27AD #AD2733 #76AD27 #27ADA1
square
#5E27AD #AD2733 #76AD27 #27ADA1
split-complementary
#5E27AD #ADA127 #33AD27
monochromatic
#281049 #431C7B #5E27AD #7B3ED3 #9D70DF

Accessibility & contrast

On white

8.86
#5E27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E27AD
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27AD#FFFFFF#000000##FFFFFF
##5E27AD1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#484C69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e27ad;
/* rgb */ color: rgb(94, 39, 173);
/* oklch */ color: oklch(43.3% 0.196 295.6);
Tailwind
colors: {
  custom: {
    50: '#9368c7',
    500: '#5e27ad',
    950: '#000000',
  },
}
SCSS
$custom: #5e27ad;
$custom-light: #9368c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27ad",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 264.627,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43282,
    "c": 0.19579,
    "h": 295.6
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#5E27AD
secondary
#A0C66A
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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