#5E218E#5E218E

#5E218E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.169 H 305.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5E218E
RGBrgb(94, 33, 142)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 77%, 56%)
CMYKcmyk(33.8%, 76.8%, 0%, 44.3%)
CIE-LABlab(27.90, 47.14, -48.55)
CIE-LCHlch(27.90, 67.67, 314.15°)
OKLaboklab(39.97% 0.0978 -0.1382)
OKLCHoklch(39.97% 0.169 305.3)
XYZxyz(10.0413, 5.4205, 26.1032)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218E #518E21
analogous
#28218E #5E218E #8E2188
triadic
#5E218E #8E5E21 #218E5E
tetradic
#5E218E #8E2821 #518E21 #21888E
square
#5E218E #8E2821 #518E21 #21888E
split-complementary
#5E218E #888E21 #218E28
monochromatic
#1C0A2B #3D155C #5E218E #7F2DC0 #9D52D7

Accessibility & contrast

On white

10.08
#5E218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E218E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218E#FFFFFF#000000##FFFFFF
##5E218E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#553C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e218e;
/* rgb */ color: rgb(94, 33, 142);
/* oklch */ color: oklch(40.0% 0.169 305.3);
Tailwind
colors: {
  custom: {
    50: '#9063b0',
    500: '#5e218e',
    950: '#000000',
  },
}
SCSS
$custom: #5e218e;
$custom-light: #9063b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218e",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 273.578,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39966,
    "c": 0.16928,
    "h": 305.3
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#5E218E
secondary
#7FBA50
accent
#E5428A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E218E

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

Preview Lab → · Contrast checker → · Palette generator →

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