#5C158C#5C158C

#5C158C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.179 H 306.1°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5C158C
RGBrgb(92, 21, 140)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 55%)
CMYKcmyk(34.3%, 85%, 0%, 45.1%)
CIE-LABlab(25.88, 50.83, -50.62)
CIE-LCHlch(25.88, 71.74, 315.12°)
OKLaboklab(38.44% 0.1053 -0.1442)
OKLCHoklch(38.44% 0.179 306.1)
XYZxyz(9.4144, 4.7052, 25.2181)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C158C #458C15
analogous
#20158C #5C158C #8C1581
triadic
#5C158C #8C5C15 #158C5C
tetradic
#5C158C #8C2015 #458C15 #15818C
square
#5C158C #8C2015 #458C15 #15818C
split-complementary
#5C158C #818C15 #158C20
monochromatic
#160522 #390D57 #5C158C #7F1DC1 #9E3AE1

Accessibility & contrast

On white

10.82
#5C158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C158C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C158C#FFFFFF#000000##FFFFFF
##5C158C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#533652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c158c;
/* rgb */ color: rgb(92, 21, 140);
/* oklch */ color: oklch(38.4% 0.179 306.1);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5c158c',
    950: '#000000',
  },
}
SCSS
$custom: #5c158c;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c158c",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 275.798,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38438,
    "c": 0.17861,
    "h": 306.1
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#5C158C
secondary
#72C03D
accent
#F13782
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C158C

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

Preview Lab → · Contrast checker → · Palette generator →

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