#5E27A9#5E27A9

#5E27A9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.191 H 296.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5E27A9
RGBrgb(94, 39, 169)
HSLhsl(265, 63%, 41%)
HSVhsv(265, 77%, 66%)
CMYKcmyk(44.4%, 76.9%, 0%, 33.7%)
CIE-LABlab(31.10, 51.25, -59.80)
CIE-LCHlch(31.10, 78.76, 310.60°)
OKLaboklab(42.92% 0.0857 -0.1713)
OKLCHoklch(42.92% 0.191 296.6)
XYZxyz(12.5011, 6.6950, 38.1620)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27A9 #72A927
analogous
#2731A9 #5E27A9 #9F27A9
triadic
#5E27A9 #A95E27 #27A95E
tetradic
#5E27A9 #A92731 #72A927 #27A99F
square
#5E27A9 #A92731 #72A927 #27A99F
split-complementary
#5E27A9 #A99F27 #31A927
monochromatic
#271046 #421C77 #5E27A9 #7B3BD2 #9D6DDD

Accessibility & contrast

On white

8.98
#5E27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27A9
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27A9#FFFFFF#000000##FFFFFF
##5E27A91.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#4A4A67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e27a9;
/* rgb */ color: rgb(94, 39, 169);
/* oklch */ color: oklch(42.9% 0.191 296.6);
Tailwind
colors: {
  custom: {
    50: '#9367c4',
    500: '#5e27a9',
    950: '#000000',
  },
}
SCSS
$custom: #5e27a9;
$custom-light: #9367c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27a9",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 265.385,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.19148,
    "h": 296.6
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#5E27A9
secondary
#9DC468
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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