#5C219F#5C219F

#5C219F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.187 H 299.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5C219F
RGBrgb(92, 33, 159)
HSLhsl(268, 66%, 38%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42.1%, 79.2%, 0%, 37.6%)
CIE-LABlab(29.07, 50.96, -57.09)
CIE-LCHlch(29.07, 76.52, 311.75°)
OKLaboklab(41.18% 0.0904 -0.1633)
OKLCHoklch(41.18% 0.187 299)
XYZxyz(11.2139, 5.8661, 33.3356)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C219F #649F21
analogous
#21259F #5C219F #9B219F
triadic
#5C219F #9F5C21 #219F5C
tetradic
#5C219F #9F2125 #649F21 #219F9B
square
#5C219F #9F2125 #649F21 #219F9B
split-complementary
#5C219F #9F9B21 #259F21
monochromatic
#210C3A #3F166C #5C219F #792CD2 #995DDD

Accessibility & contrast

On white

9.66
#5C219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5C219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C219F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C219F#FFFFFF#000000##FFFFFF
##5C219F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4B4360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c219f;
/* rgb */ color: rgb(92, 33, 159);
/* oklch */ color: oklch(41.2% 0.187 299.0);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5c219f',
    950: '#000000',
  },
}
SCSS
$custom: #5c219f;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c219f",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 268.095,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41176,
    "c": 0.18666,
    "h": 299
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#5C219F
secondary
#91C25A
accent
#E93F99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C219F

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

Preview Lab → · Contrast checker → · Palette generator →

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