#5E218C#5E218C

#5E218C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.167 H 306.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5E218C
RGBrgb(94, 33, 140)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(32.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(27.74, 46.66, -47.58)
CIE-LCHlch(27.74, 66.64, 314.45°)
OKLaboklab(39.8% 0.0982 -0.1353)
OKLCHoklch(39.8% 0.167 306)
XYZxyz(9.8925, 5.3609, 25.3195)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E218C #4F8C21
analogous
#29218C #5E218C #8C2185
triadic
#5E218C #8C5E21 #218C5E
tetradic
#5E218C #8C2921 #4F8C21 #21858C
square
#5E218C #8C2921 #4F8C21 #21858C
split-complementary
#5E218C #858C21 #218C29
monochromatic
#1B0A29 #3D155A #5E218C #7F2DBE #9D51D6

Accessibility & contrast

On white

10.13
#5E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E218C
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E218C#FFFFFF#000000##FFFFFF
##5E218C1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#563B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e218c;
/* rgb */ color: rgb(94, 33, 140);
/* oklch */ color: oklch(39.8% 0.167 306.0);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5e218c',
    950: '#000000',
  },
}
SCSS
$custom: #5e218c;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e218c",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 274.206,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39802,
    "c": 0.16719,
    "h": 306
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#5E218C
secondary
#7DB94F
accent
#E54389
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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