#5C158F#5C158F

#5C158F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.181 H 305.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5C158F
RGBrgb(92, 21, 143)
HSLhsl(275, 74%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(26.14, 51.52, -52.05)
CIE-LCHlch(26.14, 73.24, 314.70°)
OKLaboklab(38.7% 0.1044 -0.1484)
OKLCHoklch(38.7% 0.181 305.1)
XYZxyz(9.6386, 4.7949, 26.3990)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C158F #488F15
analogous
#1F158F #5C158F #8F1585
triadic
#5C158F #8F5C15 #158F5C
tetradic
#5C158F #8F1F15 #488F15 #15858F
square
#5C158F #8F1F15 #488F15 #15858F
split-complementary
#5C158F #858F15 #158F1F
monochromatic
#170524 #3A0D5A #5C158F #7E1DC4 #9D3CE2

Accessibility & contrast

On white

10.72
#5C158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C158F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C158F#FFFFFF#000000##FFFFFF
##5C158F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c158f;
/* rgb */ color: rgb(92, 21, 143);
/* oklch */ color: oklch(38.7% 0.181 305.1);
Tailwind
colors: {
  custom: {
    50: '#905eb1',
    500: '#5c158f',
    950: '#000000',
  },
}
SCSS
$custom: #5c158f;
$custom-light: #905eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c158f",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 274.918,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38703,
    "c": 0.18147,
    "h": 305.1
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#5C158F
secondary
#75C23E
accent
#F13785
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C158F

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

Preview Lab → · Contrast checker → · Palette generator →

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