#5C157D#5C157D

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

Color values

HEX#5C157D
RGBrgb(92, 21, 125)
HSLhsl(281, 71%, 29%)
HSVhsv(281, 83%, 49%)
CMYKcmyk(26.4%, 83.2%, 0%, 51%)
CIE-LABlab(24.62, 47.50, -43.25)
CIE-LCHlch(24.62, 64.24, 317.68°)
OKLaboklab(37.17% 0.1095 -0.1226)
OKLCHoklch(37.17% 0.164 311.8)
XYZxyz(8.3828, 4.2925, 19.7850)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C157D #367D15
analogous
#28157D #5C157D #7D156A
triadic
#5C157D #7D5C15 #157D5C
tetradic
#5C157D #7D2815 #367D15 #156A7D
square
#5C157D #7D2815 #367D15 #156A7D
split-complementary
#5C157D #6A7D15 #157D28
monochromatic
#13041A #350C49 #5C157D #831EB1 #A630DC

Accessibility & contrast

On white

11.30
#5C157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C157D
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C157D#FFFFFF#000000##FFFFFF
##5C157D1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#582F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c157d;
/* rgb */ color: rgb(92, 21, 125);
/* oklch */ color: oklch(37.2% 0.164 311.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5c157d',
    950: '#000000',
  },
}
SCSS
$custom: #5c157d;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c157d",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 280.962,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.16439,
    "h": 311.8
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#5C157D
secondary
#61B23C
accent
#EE3A73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C157D

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

Preview Lab → · Contrast checker → · Palette generator →

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