#5E217F#5E217F

#5E217F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.154 H 310.9°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5E217F
RGBrgb(94, 33, 127)
HSLhsl(279, 59%, 31%)
HSVhsv(279, 74%, 50%)
CMYKcmyk(26%, 74%, 0%, 50.2%)
CIE-LABlab(26.73, 43.61, -41.07)
CIE-LCHlch(26.73, 59.91, 316.72°)
OKLaboklab(38.77% 0.1006 -0.1162)
OKLCHoklch(38.77% 0.154 310.9)
XYZxyz(8.9900, 4.9999, 20.5661)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E217F #427F21
analogous
#2F217F #5E217F #7F2171
triadic
#5E217F #7F5E21 #217F5E
tetradic
#5E217F #7F2F21 #427F21 #21717F
square
#5E217F #7F2F21 #427F21 #21717F
split-complementary
#5E217F #717F21 #217F2F
monochromatic
#16081E #3A144E #5E217F #822EB0 #A14AD0

Accessibility & contrast

On white

10.50
#5E217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E217F
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E217F#FFFFFF#000000##FFFFFF
##5E217F1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#5A364E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e217f;
/* rgb */ color: rgb(94, 33, 127);
/* oklch */ color: oklch(38.8% 0.154 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f62a5',
    500: '#5e217f',
    950: '#000000',
  },
}
SCSS
$custom: #5e217f;
$custom-light: #8f62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e217f",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 278.936,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.15366,
    "h": 310.9
  },
  "luminance": 0.05
}

Semantic roles & 50–950 ramp

primary
#5E217F
secondary
#6EB24A
accent
#E2467D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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