#5C157B#5C157B

#5C157B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.163 H 312.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5C157B
RGBrgb(92, 21, 123)
HSLhsl(282, 71%, 28%)
HSVhsv(282, 83%, 48%)
CMYKcmyk(25.2%, 82.9%, 0%, 51.8%)
CIE-LABlab(24.46, 47.06, -42.24)
CIE-LCHlch(24.46, 63.24, 318.09°)
OKLaboklab(37% 0.11 -0.1196)
OKLCHoklch(37% 0.163 312.6)
XYZxyz(8.2563, 4.2420, 19.1189)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C157B #347B15
analogous
#29157B #5C157B #7B1567
triadic
#5C157B #7B5C15 #157B5C
tetradic
#5C157B #7B2915 #347B15 #15677B
square
#5C157B #7B2915 #347B15 #15677B
split-complementary
#5C157B #677B15 #157B29
monochromatic
#14041A #350C47 #5C157B #831EAF #A72FDB

Accessibility & contrast

On white

11.36
#5C157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C157B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C157B#FFFFFF#000000##FFFFFF
##5C157B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#023B79
Tritanopia (blue-blind)
#582E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c157b;
/* rgb */ color: rgb(92, 21, 123);
/* oklch */ color: oklch(37.0% 0.163 312.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ca2',
    500: '#5c157b',
    950: '#000000',
  },
}
SCSS
$custom: #5c157b;
$custom-light: #8e5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c157b",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 281.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37004,
    "c": 0.1625,
    "h": 312.6
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#5C157B
secondary
#5FB03B
accent
#EE3A71
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C157B

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

Preview Lab → · Contrast checker → · Palette generator →

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