#5C146F#5C146F

#5C146F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.152 H 318.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#5C146F
RGBrgb(92, 20, 111)
HSLhsl(287, 69%, 26%)
HSVhsv(287, 82%, 44%)
CMYKcmyk(17.1%, 82%, 0%, 56.5%)
CIE-LABlab(23.42, 44.87, -36.23)
CIE-LCHlch(23.42, 57.67, 321.08°)
OKLaboklab(35.98% 0.1132 -0.102)
OKLCHoklch(35.98% 0.152 318)
XYZxyz(7.5326, 3.9237, 15.3964)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C146F #276F14
analogous
#2F146F #5C146F #6F1454
triadic
#5C146F #6F5C14 #146F5C
tetradic
#5C146F #6F2F14 #276F14 #14546F
square
#5C146F #6F2F14 #276F14 #14546F
split-complementary
#5C146F #546F14 #146F2F
monochromatic
#15051A #310B3B #5C146F #871DA3 #B227D7

Accessibility & contrast

On white

11.77
#5C146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5C146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C146F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C146F#FFFFFF#000000##FFFFFF
##5C146F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#5B2841
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c146f;
/* rgb */ color: rgb(92, 20, 111);
/* oklch */ color: oklch(36.0% 0.152 318.0);
Tailwind
colors: {
  custom: {
    50: '#8e5b99',
    500: '#5c146f',
    950: '#000000',
  },
}
SCSS
$custom: #5c146f;
$custom-light: #8e5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5c146f",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 287.473,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35984,
    "c": 0.15235,
    "h": 318
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#5C146F
secondary
#50A639
accent
#EC3C60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C146F

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

Preview Lab → · Contrast checker → · Palette generator →

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