#5C165F#5C165F

#5C165F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.136 H 326.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5C165F
RGBrgb(92, 22, 95)
HSLhsl(298, 62%, 23%)
HSVhsv(298, 77%, 37%)
CMYKcmyk(3.2%, 76.8%, 0%, 62.7%)
CIE-LABlab(22.57, 40.97, -27.15)
CIE-LCHlch(22.57, 49.15, 326.47°)
OKLaboklab(35.03% 0.1127 -0.0754)
OKLCHoklch(35.03% 0.136 326.2)
XYZxyz(6.7660, 3.6758, 11.1774)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C165F #195F16
analogous
#37165F #5C165F #5F163D
triadic
#5C165F #5F5C16 #165F5C
tetradic
#5C165F #5F3716 #195F16 #163D5F
square
#5C165F #5F3716 #195F16 #163D5F
split-complementary
#5C165F #3D5F16 #165F37
monochromatic
#180619 #2C0A2D #5C165F #8C2291 #BC2DC2

Accessibility & contrast

On white

12.10
#5C165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5C165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C165F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C165F#FFFFFF#000000##FFFFFF
##5C165F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#27395D
Tritanopia (blue-blind)
#5F2239
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c165f;
/* rgb */ color: rgb(92, 22, 95);
/* oklch */ color: oklch(35.0% 0.136 326.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b8d',
    500: '#5c165f',
    950: '#000000',
  },
}
SCSS
$custom: #5c165f;
$custom-light: #8d5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c165f",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 297.534,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.1356,
    "h": 326.2
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#5C165F
secondary
#3F963B
accent
#E54249
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C165F

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

Preview Lab → · Contrast checker → · Palette generator →

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