#5C219B#5C219B

#5C219B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.182 H 300.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5C219B
RGBrgb(92, 33, 155)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 61%)
CMYKcmyk(40.6%, 78.7%, 0%, 39.2%)
CIE-LABlab(28.72, 49.96, -55.23)
CIE-LCHlch(28.72, 74.47, 312.13°)
OKLaboklab(40.82% 0.0915 -0.1578)
OKLCHoklch(40.82% 0.182 300.1)
XYZxyz(10.8724, 5.7295, 31.5371)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C219B #609B21
analogous
#21239B #5C219B #99219B
triadic
#5C219B #9B5C21 #219B5C
tetradic
#5C219B #9B2123 #609B21 #219B99
square
#5C219B #9B2123 #609B21 #219B99
split-complementary
#5C219B #9B9921 #239B21
monochromatic
#200C36 #3E1669 #5C219B #7A2CCD #995ADC

Accessibility & contrast

On white

9.79
#5C219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5C219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C219B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C219B#FFFFFF#000000##FFFFFF
##5C219B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4D425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c219b;
/* rgb */ color: rgb(92, 33, 155);
/* oklch */ color: oklch(40.8% 0.182 300.1);
Tailwind
colors: {
  custom: {
    50: '#9063b9',
    500: '#5c219b',
    950: '#000000',
  },
}
SCSS
$custom: #5c219b;
$custom-light: #9063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c219b",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 269.016,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.18247,
    "h": 300.1
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#5C219B
secondary
#8EC058
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C219B

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

Preview Lab → · Contrast checker → · Palette generator →

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