#5E27A6#5E27A6

#5E27A6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.188 H 297.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5E27A6
RGBrgb(94, 39, 166)
HSLhsl(266, 62%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(43.4%, 76.5%, 0%, 34.9%)
CIE-LABlab(30.84, 50.48, -58.42)
CIE-LCHlch(30.84, 77.21, 310.83°)
OKLaboklab(42.66% 0.0865 -0.1672)
OKLCHoklch(42.66% 0.188 297.3)
XYZxyz(12.2227, 6.5837, 36.6958)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27A6 #6FA627
analogous
#2730A6 #5E27A6 #9D27A6
triadic
#5E27A6 #A65E27 #27A65E
tetradic
#5E27A6 #A62730 #6FA627 #27A69D
square
#5E27A6 #A62730 #6FA627 #27A69D
split-complementary
#5E27A6 #A69D27 #30A627
monochromatic
#261043 #421B74 #5E27A6 #7B3AD1 #9C6BDC

Accessibility & contrast

On white

9.06
#5E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27A6
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27A6#FFFFFF#000000##FFFFFF
##5E27A61.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e27a6;
/* rgb */ color: rgb(94, 39, 166);
/* oklch */ color: oklch(42.7% 0.188 297.3);
Tailwind
colors: {
  custom: {
    50: '#9367c1',
    500: '#5e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e27a6;
$custom-light: #9367c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27a6",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 265.984,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42659,
    "c": 0.18824,
    "h": 297.3
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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