#5C217A#5C217A

#5C217A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.148 H 311.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5C217A
RGBrgb(92, 33, 122)
HSLhsl(280, 57%, 30%)
HSVhsv(280, 73%, 48%)
CMYKcmyk(24.6%, 73%, 0%, 52.2%)
CIE-LABlab(26.06, 42.02, -39.01)
CIE-LCHlch(26.06, 57.33, 317.13°)
OKLaboklab(38.12% 0.0984 -0.1102)
OKLCHoklch(38.12% 0.148 311.8)
XYZxyz(8.4697, 4.7684, 18.8828)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C217A #3F7A21
analogous
#2F217A #5C217A #7A216B
triadic
#5C217A #7A5C21 #217A5C
tetradic
#5C217A #7A2F21 #3F7A21 #216B7A
square
#5C217A #7A2F21 #3F7A21 #216B7A
split-complementary
#5C217A #6B7A21 #217A2F
monochromatic
#13071A #38144A #5C217A #802EAA #A048CD

Accessibility & contrast

On white

10.75
#5C217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C217A
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C217A#FFFFFF#000000##FFFFFF
##5C217A1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#163F78
Tritanopia (blue-blind)
#58344B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c217a;
/* rgb */ color: rgb(92, 33, 122);
/* oklch */ color: oklch(38.1% 0.148 311.8);
Tailwind
colors: {
  custom: {
    50: '#8e62a1',
    500: '#5c217a',
    950: '#000000',
  },
}
SCSS
$custom: #5c217a;
$custom-light: #8e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c217a",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 279.775,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38117,
    "c": 0.14775,
    "h": 311.8
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#5C217A
secondary
#6BAD4A
accent
#E1477B
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C217A

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

Preview Lab → · Contrast checker → · Palette generator →

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