#5C217B#5C217B

#5C217B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.149 H 311.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5C217B
RGBrgb(92, 33, 123)
HSLhsl(279, 58%, 31%)
HSVhsv(279, 73%, 48%)
CMYKcmyk(25.2%, 73.2%, 0%, 51.8%)
CIE-LABlab(26.14, 42.25, -39.52)
CIE-LCHlch(26.14, 57.85, 316.91°)
OKLaboklab(38.19% 0.0983 -0.1117)
OKLCHoklch(38.19% 0.149 311.3)
XYZxyz(8.5320, 4.7933, 19.2108)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C217B #407B21
analogous
#2F217B #5C217B #7B216D
triadic
#5C217B #7B5C21 #217B5C
tetradic
#5C217B #7B2F21 #407B21 #216D7B
square
#5C217B #7B2F21 #407B21 #216D7B
split-complementary
#5C217B #6D7B21 #217B2F
monochromatic
#14071A #38144B #5C217B #802EAB #A048CE

Accessibility & contrast

On white

10.72
#5C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C217B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C217B#FFFFFF#000000##FFFFFF
##5C217B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#153F79
Tritanopia (blue-blind)
#58354B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c217b;
/* rgb */ color: rgb(92, 33, 123);
/* oklch */ color: oklch(38.2% 0.149 311.3);
Tailwind
colors: {
  custom: {
    50: '#8e62a2',
    500: '#5c217b',
    950: '#000000',
  },
}
SCSS
$custom: #5c217b;
$custom-light: #8e62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c217b",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 279.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38192,
    "c": 0.1488,
    "h": 311.3
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#5C217B
secondary
#6CAE4A
accent
#E1477C
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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