#5E217D#5E217D

#5E217D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.152 H 311.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5E217D
RGBrgb(94, 33, 125)
HSLhsl(280, 58%, 31%)
HSVhsv(280, 74%, 49%)
CMYKcmyk(24.8%, 73.6%, 0%, 51%)
CIE-LABlab(26.59, 43.15, -40.05)
CIE-LCHlch(26.59, 58.87, 317.14°)
OKLaboklab(38.62% 0.1008 -0.1132)
OKLCHoklch(38.62% 0.152 311.7)
XYZxyz(8.8609, 4.9483, 19.8864)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E217D #407D21
analogous
#30217D #5E217D #7D216E
triadic
#5E217D #7D5E21 #217D5E
tetradic
#5E217D #7D3021 #407D21 #216E7D
square
#5E217D #7D3021 #407D21 #216E7D
split-complementary
#5E217D #6E7D21 #217D30
monochromatic
#15071C #3A144D #5E217D #822EAD #A249CF

Accessibility & contrast

On white

10.55
#5E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E217D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E217D#FFFFFF#000000##FFFFFF
##5E217D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#5A354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e217d;
/* rgb */ color: rgb(94, 33, 125);
/* oklch */ color: oklch(38.6% 0.152 311.7);
Tailwind
colors: {
  custom: {
    50: '#8f62a3',
    500: '#5e217d',
    950: '#000000',
  },
}
SCSS
$custom: #5e217d;
$custom-light: #8f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e217d",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 279.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38622,
    "c": 0.15158,
    "h": 311.7
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#5E217D
secondary
#6CB04A
accent
#E1467B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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