#5C1255#5C1255

#5C1255 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.132 H 332.3°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#5C1255
RGBrgb(92, 18, 85)
HSLhsl(306, 67%, 22%)
HSVhsv(306, 80%, 36%)
CMYKcmyk(0%, 80.4%, 7.6%, 63.9%)
CIE-LABlab(21.45, 40.61, -22.27)
CIE-LCHlch(21.45, 46.32, 331.26°)
OKLaboklab(34.03% 0.1167 -0.0612)
OKLCHoklch(34.03% 0.132 332.3)
XYZxyz(6.2697, 3.3643, 8.9117)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1255 #125C19
analogous
#3E125C #5C1255 #5C1230
triadic
#5C1255 #555C12 #12555C
tetradic
#5C1255 #5C3E12 #125C19 #12305C
square
#5C1255 #5C3E12 #125C19 #12305C
split-complementary
#5C1255 #305C12 #125C3E
monochromatic
#1A0518 #290826 #5C1255 #8F1C84 #C226B4

Accessibility & contrast

On white

12.55
#5C1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1255
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1255#FFFFFF#000000##FFFFFF
##5C12551.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D57
Deuteranopia (green-blind)
#2B3753
Tritanopia (blue-blind)
#601B32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1255;
/* rgb */ color: rgb(92, 18, 85);
/* oklch */ color: oklch(34.0% 0.132 332.3);
Tailwind
colors: {
  custom: {
    50: '#8d5985',
    500: '#5c1255',
    950: '#000000',
  },
}
SCSS
$custom: #5c1255;
$custom-light: #8d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1255",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 305.676,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34028,
    "c": 0.13182,
    "h": 332.3
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#5C1255
secondary
#35943E
accent
#EA4E3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1255

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

Preview Lab → · Contrast checker → · Palette generator →

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