#5C155F#5C155F

#5C155F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.137 H 326.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5C155F
RGBrgb(92, 21, 95)
HSLhsl(298, 64%, 23%)
HSVhsv(298, 78%, 37%)
CMYKcmyk(3.2%, 77.9%, 0%, 62.7%)
CIE-LABlab(22.44, 41.35, -27.36)
CIE-LCHlch(22.44, 49.58, 326.51°)
OKLaboklab(34.94% 0.1138 -0.076)
OKLCHoklch(34.94% 0.137 326.2)
XYZxyz(6.7472, 3.6383, 11.1711)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C155F #185F15
analogous
#37155F #5C155F #5F153D
triadic
#5C155F #5F5C15 #155F5C
tetradic
#5C155F #5F3715 #185F15 #153D5F
square
#5C155F #5F3715 #185F15 #153D5F
split-complementary
#5C155F #3D5F15 #155F37
monochromatic
#180619 #2B0A2D #5C155F #8D2091 #BD2BC3

Accessibility & contrast

On white

12.16
#5C155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C155F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C155F#FFFFFF#000000##FFFFFF
##5C155F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023061
Deuteranopia (green-blind)
#26395D
Tritanopia (blue-blind)
#5F2139
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c155f;
/* rgb */ color: rgb(92, 21, 95);
/* oklch */ color: oklch(34.9% 0.137 326.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b8d',
    500: '#5c155f',
    950: '#000000',
  },
}
SCSS
$custom: #5c155f;
$custom-light: #8d5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c155f",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 297.568,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34936,
    "c": 0.13681,
    "h": 326.2
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#5C155F
secondary
#3D963A
accent
#E74148
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C155F

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

Preview Lab → · Contrast checker → · Palette generator →

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