#5E218A#5E218A

#5E218A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.165 H 306.7°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5E218A
RGBrgb(94, 33, 138)
HSLhsl(275, 61%, 34%)
HSVhsv(275, 76%, 54%)
CMYKcmyk(31.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(27.58, 46.19, -46.59)
CIE-LCHlch(27.58, 65.60, 314.75°)
OKLaboklab(39.64% 0.0986 -0.1324)
OKLCHoklch(39.64% 0.165 306.7)
XYZxyz(9.7464, 5.3025, 24.5499)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218A #4D8A21
analogous
#29218A #5E218A #8A2181
triadic
#5E218A #8A5E21 #218A5E
tetradic
#5E218A #8A2921 #4D8A21 #21818A
square
#5E218A #8A2921 #4D8A21 #21818A
split-complementary
#5E218A #818A21 #218A29
monochromatic
#1B0927 #3C1559 #5E218A #802DBB #9D50D5

Accessibility & contrast

On white

10.19
#5E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E218A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218A#FFFFFF#000000##FFFFFF
##5E218A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#563A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e218a;
/* rgb */ color: rgb(94, 33, 138);
/* oklch */ color: oklch(39.6% 0.165 306.7);
Tailwind
colors: {
  custom: {
    50: '#9063ad',
    500: '#5e218a',
    950: '#000000',
  },
}
SCSS
$custom: #5e218a;
$custom-light: #9063ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218a",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 274.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39639,
    "c": 0.16511,
    "h": 306.7
  },
  "luminance": 0.05302
}

Semantic roles & 50–950 ramp

primary
#5E218A
secondary
#7BB94E
accent
#E54387
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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