#5C157C#5C157C

#5C157C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.163 H 312.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5C157C
RGBrgb(92, 21, 124)
HSLhsl(281, 71%, 28%)
HSVhsv(281, 83%, 49%)
CMYKcmyk(25.8%, 83.1%, 0%, 51.4%)
CIE-LABlab(24.54, 47.28, -42.75)
CIE-LCHlch(24.54, 63.74, 317.88°)
OKLaboklab(37.09% 0.1098 -0.1211)
OKLCHoklch(37.09% 0.163 312.2)
XYZxyz(8.3192, 4.2671, 19.4503)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C157C #357C15
analogous
#28157C #5C157C #7C1568
triadic
#5C157C #7C5C15 #157C5C
tetradic
#5C157C #7C2815 #357C15 #15687C
square
#5C157C #7C2815 #357C15 #15687C
split-complementary
#5C157C #687C15 #157C28
monochromatic
#13041A #350C48 #5C157C #831EB0 #A630DC

Accessibility & contrast

On white

11.33
#5C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C157C
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C157C#FFFFFF#000000##FFFFFF
##5C157C1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#582F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c157c;
/* rgb */ color: rgb(92, 21, 124);
/* oklch */ color: oklch(37.1% 0.163 312.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5c157c',
    950: '#000000',
  },
}
SCSS
$custom: #5c157c;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c157c",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 281.359,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37085,
    "c": 0.16345,
    "h": 312.2
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#5C157C
secondary
#60B13C
accent
#EE3A72
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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