#5C158E#5C158E

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

Color values

HEX#5C158E
RGBrgb(92, 21, 142)
HSLhsl(275, 74%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35.2%, 85.2%, 0%, 44.3%)
CIE-LABlab(26.05, 51.29, -51.58)
CIE-LCHlch(26.05, 72.74, 314.84°)
OKLaboklab(38.61% 0.1047 -0.147)
OKLCHoklch(38.61% 0.181 305.5)
XYZxyz(9.5632, 4.7647, 26.0018)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C158E #478E15
analogous
#20158E #5C158E #8E1584
triadic
#5C158E #8E5C15 #158E5C
tetradic
#5C158E #8E2015 #478E15 #15848E
square
#5C158E #8E2015 #478E15 #15848E
split-complementary
#5C158E #848E15 #158E20
monochromatic
#170523 #390D59 #5C158E #7F1DC3 #9D3BE2

Accessibility & contrast

On white

10.75
#5C158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C158E
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C158E#FFFFFF#000000##FFFFFF
##5C158E1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#533754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c158e;
/* rgb */ color: rgb(92, 21, 142);
/* oklch */ color: oklch(38.6% 0.181 305.5);
Tailwind
colors: {
  custom: {
    50: '#905eb0',
    500: '#5c158e',
    950: '#000000',
  },
}
SCSS
$custom: #5c158e;
$custom-light: #905eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c158e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 275.207,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.18051,
    "h": 305.5
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#5C158E
secondary
#74C23D
accent
#F13784
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C158E

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

Preview Lab → · Contrast checker → · Palette generator →

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