#5E27A2#5E27A2

#5E27A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.184 H 298.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5E27A2
RGBrgb(94, 39, 162)
HSLhsl(267, 61%, 39%)
HSVhsv(267, 76%, 64%)
CMYKcmyk(42%, 75.9%, 0%, 36.5%)
CIE-LABlab(30.49, 49.46, -56.57)
CIE-LCHlch(30.49, 75.14, 311.16°)
OKLaboklab(42.31% 0.0875 -0.1618)
OKLCHoklch(42.31% 0.184 298.4)
XYZxyz(11.8615, 6.4392, 34.7934)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E27A2 #6BA227
analogous
#272EA2 #5E27A2 #9C27A2
triadic
#5E27A2 #A25E27 #27A25E
tetradic
#5E27A2 #A2272E #6BA227 #27A29C
square
#5E27A2 #A2272E #6BA227 #27A29C
split-complementary
#5E27A2 #A29C27 #2EA227
monochromatic
#250F3F #411B71 #5E27A2 #7B37CF #9C69DB

Accessibility & contrast

On white

9.18
#5E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E27A2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E27A2#FFFFFF#000000##FFFFFF
##5E27A21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4D4763
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e27a2;
/* rgb */ color: rgb(94, 39, 162);
/* oklch */ color: oklch(42.3% 0.184 298.4);
Tailwind
colors: {
  custom: {
    50: '#9267be',
    500: '#5e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e27a2;
$custom-light: #9267be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e27a2",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 266.829,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4231,
    "c": 0.18391,
    "h": 298.4
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#5E27A2
secondary
#97C164
accent
#E4439C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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