#5C1966#5C1966

#5C1966 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.138 H 322.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5C1966
RGBrgb(92, 25, 102)
HSLhsl(292, 61%, 25%)
HSVhsv(292, 75%, 40%)
CMYKcmyk(9.8%, 75.5%, 0%, 60%)
CIE-LABlab(23.44, 41.16, -30.35)
CIE-LCHlch(23.44, 51.14, 323.59°)
OKLaboklab(35.8% 0.1092 -0.0848)
OKLCHoklch(35.8% 0.138 322.2)
XYZxyz(7.1593, 3.9303, 12.9493)
Luminance0.0393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1966 #236619
analogous
#361966 #5C1966 #661949
triadic
#5C1966 #665C19 #19665C
tetradic
#5C1966 #663619 #236619 #194966
square
#5C1966 #663619 #236619 #194966
split-complementary
#5C1966 #496619 #196636
monochromatic
#160619 #300D35 #5C1966 #882597 #B531C8

Accessibility & contrast

On white

11.76
#5C1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1966
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1966#FFFFFF#000000##FFFFFF
##5C19661.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#243A64
Tritanopia (blue-blind)
#5D273E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1966;
/* rgb */ color: rgb(92, 25, 102);
/* oklch */ color: oklch(35.8% 0.138 322.2);
Tailwind
colors: {
  custom: {
    50: '#8d5d92',
    500: '#5c1966',
    950: '#000000',
  },
}
SCSS
$custom: #5c1966;
$custom-light: #8d5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1966",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 292.208,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35798,
    "c": 0.13825,
    "h": 322.2
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#5C1966
secondary
#4B9C3F
accent
#E44459
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5C1966

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

Preview Lab → · Contrast checker → · Palette generator →

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