#5C1972#5C1972

#5C1972 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.150 H 316.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5C1972
RGBrgb(92, 25, 114)
HSLhsl(285, 64%, 27%)
HSVhsv(285, 78%, 45%)
CMYKcmyk(19.3%, 78.1%, 0%, 55.3%)
CIE-LABlab(24.28, 43.66, -36.78)
CIE-LCHlch(24.28, 57.09, 319.89°)
OKLaboklab(36.66% 0.108 -0.1036)
OKLCHoklch(36.66% 0.15 316.2)
XYZxyz(7.7981, 4.1858, 16.3135)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1972 #2F7219
analogous
#301972 #5C1972 #72195B
triadic
#5C1972 #725C19 #19725C
tetradic
#5C1972 #723019 #2F7219 #195B72
square
#5C1972 #723019 #2F7219 #195B72
split-complementary
#5C1972 #5B7219 #197230
monochromatic
#140619 #330E40 #5C1972 #8524A4 #AB33D2

Accessibility & contrast

On white

11.43
#5C1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5C1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1972
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1972#FFFFFF#000000##FFFFFF
##5C19721.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#183C70
Tritanopia (blue-blind)
#5B2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1972;
/* rgb */ color: rgb(92, 25, 114);
/* oklch */ color: oklch(36.7% 0.150 316.2);
Tailwind
colors: {
  custom: {
    50: '#8e5e9b',
    500: '#5c1972',
    950: '#000000',
  },
}
SCSS
$custom: #5c1972;
$custom-light: #8e5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1972",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 285.169,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36661,
    "c": 0.14968,
    "h": 316.2
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#5C1972
secondary
#59A740
accent
#E7416A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5C1972

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

Preview Lab → · Contrast checker → · Palette generator →

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