#5E218F#5E218F

#5E218F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.170 H 304.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5E218F
RGBrgb(94, 33, 143)
HSLhsl(273, 63%, 35%)
HSVhsv(273, 77%, 56%)
CMYKcmyk(34.3%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.98, 47.38, -49.04)
CIE-LCHlch(27.98, 68.19, 314.01°)
OKLaboklab(40.05% 0.0976 -0.1396)
OKLCHoklch(40.05% 0.17 304.9)
XYZxyz(10.1168, 5.4506, 26.5004)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218F #528F21
analogous
#27218F #5E218F #8F2189
triadic
#5E218F #8F5E21 #218F5E
tetradic
#5E218F #8F2721 #528F21 #21898F
square
#5E218F #8F2721 #528F21 #21898F
split-complementary
#5E218F #898F21 #218F27
monochromatic
#1D0A2C #3D165D #5E218F #7F2CC1 #9C53D7

Accessibility & contrast

On white

10.05
#5E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E218F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218F#FFFFFF#000000##FFFFFF
##5E218F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#553D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e218f;
/* rgb */ color: rgb(94, 33, 143);
/* oklch */ color: oklch(40.0% 0.170 304.9);
Tailwind
colors: {
  custom: {
    50: '#9163b1',
    500: '#5e218f',
    950: '#000000',
  },
}
SCSS
$custom: #5e218f;
$custom-light: #9163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218f",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 273.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.17031,
    "h": 304.9
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#5E218F
secondary
#80BB51
accent
#E6428B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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