#5C159E#5C159E

#5C159E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.196 H 300.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5C159E
RGBrgb(92, 21, 158)
HSLhsl(271, 77%, 35%)
HSVhsv(271, 87%, 62%)
CMYKcmyk(41.8%, 86.7%, 0%, 38%)
CIE-LABlab(27.52, 54.98, -59.02)
CIE-LCHlch(27.52, 80.67, 312.97°)
OKLaboklab(40.07% 0.0991 -0.1689)
OKLCHoklch(40.07% 0.196 300.4)
XYZxyz(10.8518, 5.2802, 32.7886)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C159E #579E15
analogous
#18159E #5C159E #9E159B
triadic
#5C159E #9E5C15 #159E5C
tetradic
#5C159E #9E1815 #579E15 #159B9E
square
#5C159E #9E1815 #579E15 #159B9E
split-complementary
#5C159E #9B9E15 #159E18
monochromatic
#1D0732 #3D0E68 #5C159E #7B1CD4 #9A47E7

Accessibility & contrast

On white

10.21
#5C159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5C159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C159E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C159E#FFFFFF#000000##FFFFFF
##5C159E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c159e;
/* rgb */ color: rgb(92, 21, 158);
/* oklch */ color: oklch(40.1% 0.196 300.4);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5c159e',
    950: '#000000',
  },
}
SCSS
$custom: #5c159e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c159e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 271.095,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40073,
    "c": 0.19585,
    "h": 300.4
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#5C159E
secondary
#85C747
accent
#F33590
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C159E

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

Preview Lab → · Contrast checker → · Palette generator →

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