#5E27B1#5E27B1

#5E27B1 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.200 H 294.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5E27B1
RGBrgb(94, 39, 177)
HSLhsl(264, 64%, 42%)
HSVhsv(264, 78%, 69%)
CMYKcmyk(46.9%, 78%, 0%, 30.6%)
CIE-LABlab(31.82, 53.31, -63.42)
CIE-LCHlch(31.82, 82.85, 310.05°)
OKLaboklab(43.64% 0.0834 -0.1819)
OKLCHoklch(43.64% 0.2 294.6)
XYZxyz(13.2753, 7.0047, 42.2390)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27B1 #7AB127
analogous
#2735B1 #5E27B1 #A327B1
triadic
#5E27B1 #B15E27 #27B15E
tetradic
#5E27B1 #B12735 #7AB127 #27B1A3
square
#5E27B1 #B12735 #7AB127 #27B1A3
split-complementary
#5E27B1 #B1A327 #35B127
monochromatic
#29114D #431C7F #5E27B1 #7C40D5 #9E72E0

Accessibility & contrast

On white

8.75
#5E27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27B1
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27B1#FFFFFF#000000##FFFFFF
##5E27B11.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#464D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e27b1;
/* rgb */ color: rgb(94, 39, 177);
/* oklch */ color: oklch(43.6% 0.200 294.6);
Tailwind
colors: {
  custom: {
    50: '#9468c9',
    500: '#5e27b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e27b1;
$custom-light: #9468c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27b1",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 263.913,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43644,
    "c": 0.20009,
    "h": 294.6
  },
  "luminance": 0.07005
}

Semantic roles & 50–950 ramp

primary
#5E27B1
secondary
#A3C76D
accent
#E741A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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