#5E27A3#5E27A3

#5E27A3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.185 H 298.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5E27A3
RGBrgb(94, 39, 163)
HSLhsl(267, 61%, 40%)
HSVhsv(267, 76%, 64%)
CMYKcmyk(42.3%, 76.1%, 0%, 36.1%)
CIE-LABlab(30.58, 49.71, -57.04)
CIE-LCHlch(30.58, 75.66, 311.08°)
OKLaboklab(42.4% 0.0872 -0.1631)
OKLCHoklch(42.4% 0.185 298.1)
XYZxyz(11.9508, 6.4749, 35.2634)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27A3 #6CA327
analogous
#272EA3 #5E27A3 #9C27A3
triadic
#5E27A3 #A35E27 #27A35E
tetradic
#5E27A3 #A3272E #6CA327 #27A39C
square
#5E27A3 #A3272E #6CA327 #27A39C
split-complementary
#5E27A3 #A39C27 #2EA327
monochromatic
#250F40 #421B72 #5E27A3 #7B38CF #9C69DB

Accessibility & contrast

On white

9.15
#5E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27A3
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27A3#FFFFFF#000000##FFFFFF
##5E27A31.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#4D4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e27a3;
/* rgb */ color: rgb(94, 39, 163);
/* oklch */ color: oklch(42.4% 0.185 298.1);
Tailwind
colors: {
  custom: {
    50: '#9267bf',
    500: '#5e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #5e27a3;
$custom-light: #9267bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27a3",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 266.613,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42397,
    "c": 0.18499,
    "h": 298.1
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#5E27A3
secondary
#98C164
accent
#E4439D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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