#5C1951#5C1951

#5C1951 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.120 H 335.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5C1951
RGBrgb(92, 25, 81)
HSLhsl(310, 57%, 23%)
HSVhsv(310, 73%, 36%)
CMYKcmyk(0%, 72.8%, 12%, 63.9%)
CIE-LABlab(22.18, 37.21, -18.44)
CIE-LCHlch(22.18, 41.53, 333.65°)
OKLaboklab(34.48% 0.1084 -0.0503)
OKLCHoklch(34.48% 0.12 335.1)
XYZxyz(6.2465, 3.5652, 8.1421)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1951 #195C24
analogous
#45195C #5C1951 #5C192F
triadic
#5C1951 #515C19 #19515C
tetradic
#5C1951 #5C4519 #195C24 #192F5C
square
#5C1951 #5C4519 #195C24 #192F5C
split-complementary
#5C1951 #2F5C19 #195C45
monochromatic
#180715 #2C0C27 #5C1951 #8C267B #BC33A6

Accessibility & contrast

On white

12.26
#5C1951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5C1951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1951
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1951#FFFFFF#000000##FFFFFF
##5C19511.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F53
Deuteranopia (green-blind)
#2F394F
Tritanopia (blue-blind)
#611E32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c1951;
/* rgb */ color: rgb(92, 25, 81);
/* oklch */ color: oklch(34.5% 0.120 335.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c82',
    500: '#5c1951',
    950: '#000000',
  },
}
SCSS
$custom: #5c1951;
$custom-light: #8d5c82;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1951",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 81
  },
  "hsl": {
    "h": 309.851,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34483,
    "c": 0.11953,
    "h": 335.1
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5C1951
secondary
#3F924C
accent
#E16047
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C1951

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

Preview Lab → · Contrast checker → · Palette generator →

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