#5C1253#5C1253

#5C1253 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.130 H 333.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#5C1253
RGBrgb(92, 18, 83)
HSLhsl(307, 67%, 22%)
HSVhsv(307, 80%, 36%)
CMYKcmyk(0%, 80.4%, 9.8%, 63.9%)
CIE-LABlab(21.33, 40.27, -21.11)
CIE-LCHlch(21.33, 45.47, 332.34°)
OKLaboklab(33.91% 0.1166 -0.0579)
OKLCHoklch(33.91% 0.13 333.6)
XYZxyz(6.1913, 3.3330, 8.4992)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1253 #125C1B
analogous
#40125C #5C1253 #5C122E
triadic
#5C1253 #535C12 #12535C
tetradic
#5C1253 #5C4012 #125C1B #122E5C
square
#5C1253 #5C4012 #125C1B #122E5C
split-complementary
#5C1253 #2E5C12 #125C40
monochromatic
#1A0517 #290825 #5C1253 #8F1C81 #C226AF

Accessibility & contrast

On white

12.60
#5C1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5C1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1253
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1253#FFFFFF#000000##FFFFFF
##5C12531.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2C55
Deuteranopia (green-blind)
#2C3751
Tritanopia (blue-blind)
#611931
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1253;
/* rgb */ color: rgb(92, 18, 83);
/* oklch */ color: oklch(33.9% 0.130 333.6);
Tailwind
colors: {
  custom: {
    50: '#8d5983',
    500: '#5c1253',
    950: '#000000',
  },
}
SCSS
$custom: #5c1253;
$custom-light: #8d5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1253",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 307.297,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.13021,
    "h": 333.6
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#5C1253
secondary
#359441
accent
#EA533E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C1253

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

Preview Lab → · Contrast checker → · Palette generator →

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