#5E27B0#5E27B0

#5E27B0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.199 H 294.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5E27B0
RGBrgb(94, 39, 176)
HSLhsl(264, 64%, 42%)
HSVhsv(264, 78%, 69%)
CMYKcmyk(46.6%, 77.8%, 0%, 31%)
CIE-LABlab(31.73, 53.05, -62.97)
CIE-LCHlch(31.73, 82.34, 310.11°)
OKLaboklab(43.55% 0.0837 -0.1806)
OKLCHoklch(43.55% 0.199 294.9)
XYZxyz(13.1760, 6.9649, 41.7160)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27B0 #79B027
analogous
#2734B0 #5E27B0 #A327B0
triadic
#5E27B0 #B05E27 #27B05E
tetradic
#5E27B0 #B02734 #79B027 #27B0A3
square
#5E27B0 #B02734 #79B027 #27B0A3
split-complementary
#5E27B0 #B0A327 #34B027
monochromatic
#28114C #431C7E #5E27B0 #7B40D5 #9E72E0

Accessibility & contrast

On white

8.78
#5E27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E27B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27B0
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27B0#FFFFFF#000000##FFFFFF
##5E27B01.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#464D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e27b0;
/* rgb */ color: rgb(94, 39, 176);
/* oklch */ color: oklch(43.6% 0.199 294.9);
Tailwind
colors: {
  custom: {
    50: '#9468c9',
    500: '#5e27b0',
    950: '#000000',
  },
}
SCSS
$custom: #5e27b0;
$custom-light: #9468c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27b0",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 264.088,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43553,
    "c": 0.19901,
    "h": 294.9
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#5E27B0
secondary
#A2C76C
accent
#E741A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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