#5E218D#5E218D

#5E218D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.168 H 305.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5E218D
RGBrgb(94, 33, 141)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 77%, 55%)
CMYKcmyk(33.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(27.82, 46.90, -48.06)
CIE-LCHlch(27.82, 67.16, 314.30°)
OKLaboklab(39.88% 0.098 -0.1367)
OKLCHoklch(39.88% 0.168 305.6)
XYZxyz(9.9666, 5.3906, 25.7096)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218D #508D21
analogous
#28218D #5E218D #8D2186
triadic
#5E218D #8D5E21 #218D5E
tetradic
#5E218D #8D2821 #508D21 #21868D
square
#5E218D #8D2821 #508D21 #21868D
split-complementary
#5E218D #868D21 #218D28
monochromatic
#1C0A2A #3D155B #5E218D #7F2DBF #9D52D6

Accessibility & contrast

On white

10.11
#5E218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E218D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218D#FFFFFF#000000##FFFFFF
##5E218D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e218d;
/* rgb */ color: rgb(94, 33, 141);
/* oklch */ color: oklch(39.9% 0.168 305.6);
Tailwind
colors: {
  custom: {
    50: '#9063af',
    500: '#5e218d',
    950: '#000000',
  },
}
SCSS
$custom: #5e218d;
$custom-light: #9063af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218d",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 273.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39884,
    "c": 0.16823,
    "h": 305.6
  },
  "luminance": 0.0539
}

Semantic roles & 50–950 ramp

primary
#5E218D
secondary
#7EBA50
accent
#E54389
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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