#5C1487#5C1487

#5C1487 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.175 H 308.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5C1487
RGBrgb(92, 20, 135)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 53%)
CMYKcmyk(31.9%, 85.2%, 0%, 47.1%)
CIE-LABlab(25.34, 50.03, -48.38)
CIE-LCHlch(25.34, 69.60, 315.96°)
OKLaboklab(37.93% 0.1076 -0.1376)
OKLCHoklch(37.93% 0.175 308)
XYZxyz(9.0360, 4.5250, 23.3144)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1487 #3F8714
analogous
#221487 #5C1487 #871479
triadic
#5C1487 #875C14 #14875C
tetradic
#5C1487 #872214 #3F8714 #147987
square
#5C1487 #872214 #3F8714 #147987
split-complementary
#5C1487 #798714 #148722
monochromatic
#13041C #380C52 #5C1487 #801CBC #A034E1

Accessibility & contrast

On white

11.02
#5C1487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1487
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1487#FFFFFF#000000##FFFFFF
##5C14871.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#55344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1487;
/* rgb */ color: rgb(92, 20, 135);
/* oklch */ color: oklch(37.9% 0.175 308.0);
Tailwind
colors: {
  custom: {
    50: '#8f5dab',
    500: '#5c1487',
    950: '#000000',
  },
}
SCSS
$custom: #5c1487;
$custom-light: #8f5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1487",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 135
  },
  "hsl": {
    "h": 277.565,
    "s": 74.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37928,
    "c": 0.1747,
    "h": 308
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#5C1487
secondary
#6BBB3B
accent
#F1377C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1487

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

Preview Lab → · Contrast checker → · Palette generator →

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