#5E218B#5E218B

#5E218B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.166 H 306.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5E218B
RGBrgb(94, 33, 139)
HSLhsl(275, 62%, 34%)
HSVhsv(275, 76%, 55%)
CMYKcmyk(32.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(27.66, 46.42, -47.08)
CIE-LCHlch(27.66, 66.12, 314.60°)
OKLaboklab(39.72% 0.0984 -0.1339)
OKLCHoklch(39.72% 0.166 306.3)
XYZxyz(9.8191, 5.3316, 24.9329)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218B #4E8B21
analogous
#29218B #5E218B #8B2183
triadic
#5E218B #8B5E21 #218B5E
tetradic
#5E218B #8B2921 #4E8B21 #21838B
square
#5E218B #8B2921 #4E8B21 #21838B
split-complementary
#5E218B #838B21 #218B29
monochromatic
#1B0A28 #3D155A #5E218B #7F2DBC #9D51D6

Accessibility & contrast

On white

10.16
#5E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E218B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218B#FFFFFF#000000##FFFFFF
##5E218B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#563B54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e218b;
/* rgb */ color: rgb(94, 33, 139);
/* oklch */ color: oklch(39.7% 0.166 306.3);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5e218b',
    950: '#000000',
  },
}
SCSS
$custom: #5e218b;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218b",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 274.528,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3972,
    "c": 0.16615,
    "h": 306.3
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#5E218B
secondary
#7CB94F
accent
#E54388
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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