#5C158D#5C158D

#5C158D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.180 H 305.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5C158D
RGBrgb(92, 21, 141)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 55%)
CMYKcmyk(34.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(25.97, 51.06, -51.10)
CIE-LCHlch(25.97, 72.24, 314.98°)
OKLaboklab(38.53% 0.105 -0.1456)
OKLCHoklch(38.53% 0.18 305.8)
XYZxyz(9.4884, 4.7348, 25.6082)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C158D #468D15
analogous
#20158D #5C158D #8D1582
triadic
#5C158D #8D5C15 #158D5C
tetradic
#5C158D #8D2015 #468D15 #15828D
square
#5C158D #8D2015 #468D15 #15828D
split-complementary
#5C158D #828D15 #158D20
monochromatic
#160522 #390D58 #5C158D #7F1DC2 #9E3BE2

Accessibility & contrast

On white

10.79
#5C158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C158D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C158D#FFFFFF#000000##FFFFFF
##5C158D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#533753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c158d;
/* rgb */ color: rgb(92, 21, 141);
/* oklch */ color: oklch(38.5% 0.180 305.8);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5c158d',
    950: '#000000',
  },
}
SCSS
$custom: #5c158d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c158d",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 275.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38526,
    "c": 0.17956,
    "h": 305.8
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#5C158D
secondary
#73C13D
accent
#F13783
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C158D

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

Preview Lab → · Contrast checker → · Palette generator →

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