#5C1261#5C1261

#5C1261 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.142 H 325.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5C1261
RGBrgb(92, 18, 97)
HSLhsl(296, 69%, 23%)
HSVhsv(296, 81%, 38%)
CMYKcmyk(5.2%, 81.4%, 0%, 62%)
CIE-LABlab(22.20, 42.78, -29.05)
CIE-LCHlch(22.20, 51.71, 325.82°)
OKLaboklab(34.81% 0.1166 -0.0809)
OKLCHoklch(34.81% 0.142 325.2)
XYZxyz(6.7874, 3.5714, 11.6388)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1261 #176112
analogous
#351261 #5C1261 #61123E
triadic
#5C1261 #615C12 #12615C
tetradic
#5C1261 #613512 #176112 #123E61
square
#5C1261 #613512 #176112 #123E61
split-complementary
#5C1261 #3E6112 #126135
monochromatic
#18051A #2B082D #5C1261 #8D1C95 #BE25C8

Accessibility & contrast

On white

12.25
#5C1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1261
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1261#FFFFFF#000000##FFFFFF
##5C12611.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#24385F
Tritanopia (blue-blind)
#5E2139
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c1261;
/* rgb */ color: rgb(92, 18, 97);
/* oklch */ color: oklch(34.8% 0.142 325.2);
Tailwind
colors: {
  custom: {
    50: '#8d5a8e',
    500: '#5c1261',
    950: '#000000',
  },
}
SCSS
$custom: #5c1261;
$custom-light: #8d5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1261",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 296.203,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.14193,
    "h": 325.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#5C1261
secondary
#3C9936
accent
#EC3C47
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C1261

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

Preview Lab → · Contrast checker → · Palette generator →

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