#5C1260#5C1260

#5C1260 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.141 H 325.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5C1260
RGBrgb(92, 18, 96)
HSLhsl(297, 68%, 22%)
HSVhsv(297, 81%, 38%)
CMYKcmyk(4.2%, 81.3%, 0%, 62.4%)
CIE-LABlab(22.13, 42.59, -28.50)
CIE-LCHlch(22.13, 51.25, 326.21°)
OKLaboklab(34.74% 0.1167 -0.0793)
OKLCHoklch(34.74% 0.141 325.8)
XYZxyz(6.7411, 3.5529, 11.3948)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1260 #166012
analogous
#351260 #5C1260 #60123D
triadic
#5C1260 #605C12 #12605C
tetradic
#5C1260 #603512 #166012 #123D60
square
#5C1260 #603512 #166012 #123D60
split-complementary
#5C1260 #3D6012 #126035
monochromatic
#19051A #2B082C #5C1260 #8D1C94 #BF25C7

Accessibility & contrast

On white

12.28
#5C1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1260
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1260#FFFFFF#000000##FFFFFF
##5C12601.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#24385E
Tritanopia (blue-blind)
#5E2039
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c1260;
/* rgb */ color: rgb(92, 18, 96);
/* oklch */ color: oklch(34.7% 0.141 325.8);
Tailwind
colors: {
  custom: {
    50: '#8d5a8d',
    500: '#5c1260',
    950: '#000000',
  },
}
SCSS
$custom: #5c1260;
$custom-light: #8d5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1260",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 296.923,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34741,
    "c": 0.14107,
    "h": 325.8
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#5C1260
secondary
#3B9836
accent
#EB3D45
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C1260

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

Preview Lab → · Contrast checker → · Palette generator →

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