#5C1EA1#5C1EA1

#5C1EA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.192 H 298.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5C1EA1
RGBrgb(92, 30, 161)
HSLhsl(268, 69%, 37%)
HSVhsv(268, 81%, 63%)
CMYKcmyk(42.9%, 81.4%, 0%, 36.9%)
CIE-LABlab(28.84, 52.64, -58.68)
CIE-LCHlch(28.84, 78.83, 311.89°)
OKLaboklab(41.07% 0.0921 -0.168)
OKLCHoklch(41.07% 0.192 298.7)
XYZxyz(11.3093, 5.7769, 34.2305)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1EA1 #63A11E
analogous
#1E22A1 #5C1EA1 #9D1EA1
triadic
#5C1EA1 #A15C1E #1EA15C
tetradic
#5C1EA1 #A11E22 #63A11E #1EA19D
square
#5C1EA1 #A11E22 #63A11E #1EA19D
split-complementary
#5C1EA1 #A19D1E #22A11E
monochromatic
#210B3A #3F146D #5C1EA1 #7928D5 #9959E0

Accessibility & contrast

On white

9.74
#5C1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5C1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1EA1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1EA1#FFFFFF#000000##FFFFFF
##5C1EA11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#4B4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c1ea1;
/* rgb */ color: rgb(92, 30, 161);
/* oklch */ color: oklch(41.1% 0.192 298.7);
Tailwind
colors: {
  custom: {
    50: '#9162be',
    500: '#5c1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5c1ea1;
$custom-light: #9162be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1ea1",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 268.397,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41072,
    "c": 0.19156,
    "h": 298.7
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#5C1EA1
secondary
#90C457
accent
#EB3C99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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