#5C1895#5C1895

#5C1895 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.185 H 302.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5C1895
RGBrgb(92, 24, 149)
HSLhsl(273, 72%, 34%)
HSVhsv(273, 84%, 58%)
CMYKcmyk(38.3%, 83.9%, 0%, 41.6%)
CIE-LABlab(27.01, 51.92, -54.34)
CIE-LCHlch(27.01, 75.15, 313.70°)
OKLaboklab(39.47% 0.1004 -0.1552)
OKLCHoklch(39.47% 0.185 302.9)
XYZxyz(10.1638, 5.0985, 28.8766)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1895 #519518
analogous
#1E1895 #5C1895 #951890
triadic
#5C1895 #955C18 #18955C
tetradic
#5C1895 #951E18 #519518 #189095
square
#5C1895 #951E18 #519518 #189095
split-complementary
#5C1895 #909518 #18951E
monochromatic
#1B072C #3B1060 #5C1895 #7D20CA #9B46E1

Accessibility & contrast

On white

10.40
#5C1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1895
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1895#FFFFFF#000000##FFFFFF
##5C18951.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#503C58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1895;
/* rgb */ color: rgb(92, 24, 149);
/* oklch */ color: oklch(39.5% 0.185 302.9);
Tailwind
colors: {
  custom: {
    50: '#905fb5',
    500: '#5c1895',
    950: '#000000',
  },
}
SCSS
$custom: #5c1895;
$custom-light: #905fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1895",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 272.64,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39471,
    "c": 0.18479,
    "h": 302.9
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#5C1895
secondary
#7FC246
accent
#EF398C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1895

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

Preview Lab → · Contrast checker → · Palette generator →

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