#5C157E#5C157E

#5C157E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.165 H 311.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5C157E
RGBrgb(92, 21, 126)
HSLhsl(281, 71%, 29%)
HSVhsv(281, 83%, 49%)
CMYKcmyk(27%, 83.3%, 0%, 50.6%)
CIE-LABlab(24.70, 47.71, -43.76)
CIE-LCHlch(24.70, 64.74, 317.48°)
OKLaboklab(37.25% 0.1093 -0.1241)
OKLCHoklch(37.25% 0.165 311.4)
XYZxyz(8.4470, 4.3182, 20.1231)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C157E #377E15
analogous
#27157E #5C157E #7E156C
triadic
#5C157E #7E5C15 #157E5C
tetradic
#5C157E #7E2715 #377E15 #156C7E
square
#5C157E #7E2715 #377E15 #156C7E
split-complementary
#5C157E #6C7E15 #157E27
monochromatic
#13041A #360C4A #5C157E #821EB2 #A531DD

Accessibility & contrast

On white

11.27
#5C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5C157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C157E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C157E#FFFFFF#000000##FFFFFF
##5C157E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#58304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c157e;
/* rgb */ color: rgb(92, 21, 126);
/* oklch */ color: oklch(37.2% 0.165 311.4);
Tailwind
colors: {
  custom: {
    50: '#8e5da4',
    500: '#5c157e',
    950: '#000000',
  },
}
SCSS
$custom: #5c157e;
$custom-light: #8e5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c157e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 280.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.16533,
    "h": 311.4
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#5C157E
secondary
#62B33C
accent
#EE3A74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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