#5C17A0#5C17A0

#5C17A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.4% C 0.196 H 299.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5C17A0
RGBrgb(92, 23, 160)
HSLhsl(270, 75%, 36%)
HSVhsv(270, 86%, 63%)
CMYKcmyk(42.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(27.92, 54.84, -59.59)
CIE-LCHlch(27.92, 80.98, 312.62°)
OKLaboklab(40.4% 0.0972 -0.1706)
OKLCHoklch(40.4% 0.196 299.7)
XYZxyz(11.0636, 5.4260, 33.7153)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C17A0 #5BA017
analogous
#1817A0 #5C17A0 #A0179F
triadic
#5C17A0 #A05C17 #17A05C
tetradic
#5C17A0 #A01817 #5BA017 #179FA0
square
#5C17A0 #A01817 #5BA017 #179FA0
split-complementary
#5C17A0 #9FA017 #17A018
monochromatic
#1E0835 #3D0F6A #5C17A0 #7B1FD6 #994CE5

Accessibility & contrast

On white

10.07
#5C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C17A0
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C17A0#FFFFFF#000000##FFFFFF
##5C17A01.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#4B405F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c17a0;
/* rgb */ color: rgb(92, 23, 160);
/* oklch */ color: oklch(40.4% 0.196 299.7);
Tailwind
colors: {
  custom: {
    50: '#9260bd',
    500: '#5c17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5c17a0;
$custom-light: #9260bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c17a0",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 270.219,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40403,
    "c": 0.19632,
    "h": 299.7
  },
  "luminance": 0.05426
}

Semantic roles & 50–950 ramp

primary
#5C17A0
secondary
#89C74C
accent
#F13693
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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