#5C1E95#5C1E95

#5C1E95 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.179 H 302.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5C1E95
RGBrgb(92, 30, 149)
HSLhsl(271, 66%, 35%)
HSVhsv(271, 80%, 58%)
CMYKcmyk(38.3%, 79.9%, 0%, 41.6%)
CIE-LABlab(27.77, 49.71, -53.09)
CIE-LCHlch(27.77, 72.73, 313.12°)
OKLaboklab(40% 0.0957 -0.1516)
OKLCHoklch(40% 0.179 302.3)
XYZxyz(10.3014, 5.3738, 28.9225)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E95 #57951E
analogous
#211E95 #5C1E95 #951E92
triadic
#5C1E95 #955C1E #1E955C
tetradic
#5C1E95 #95211E #57951E #1E9295
square
#5C1E95 #95211E #57951E #1E9295
split-complementary
#5C1E95 #92951E #1E9521
monochromatic
#1D092F #3D1462 #5C1E95 #7B28C8 #9A51DC

Accessibility & contrast

On white

10.12
#5C1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1E95
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E95#FFFFFF#000000##FFFFFF
##5C1E951.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#503E59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1e95;
/* rgb */ color: rgb(92, 30, 149);
/* oklch */ color: oklch(40.0% 0.179 302.3);
Tailwind
colors: {
  custom: {
    50: '#9062b5',
    500: '#5c1e95',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e95;
$custom-light: #9062b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e95",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 271.261,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4,
    "c": 0.17927,
    "h": 302.3
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#5C1E95
secondary
#85BF50
accent
#E93E90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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