#5C1C8B#5C1C8B

#5C1C8B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.171 H 305.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5C1C8B
RGBrgb(92, 28, 139)
HSLhsl(275, 66%, 33%)
HSVhsv(275, 80%, 55%)
CMYKcmyk(33.8%, 79.9%, 0%, 45.5%)
CIE-LABlab(26.65, 48.11, -48.74)
CIE-LCHlch(26.65, 68.49, 314.63°)
OKLaboklab(38.95% 0.1001 -0.1388)
OKLCHoklch(38.95% 0.171 305.8)
XYZxyz(9.4880, 4.9700, 24.8805)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C8B #4B8B1C
analogous
#251C8B #5C1C8B #8B1C82
triadic
#5C1C8B #8B5C1C #1C8B5C
tetradic
#5C1C8B #8B251C #4B8B1C #1C828B
square
#5C1C8B #8B251C #4B8B1C #1C828B
split-complementary
#5C1C8B #828B1C #1C8B25
monochromatic
#190725 #3A1258 #5C1C8B #7E26BE #9C47DA

Accessibility & contrast

On white

10.53
#5C1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C8B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C8B#FFFFFF#000000##FFFFFF
##5C1C8B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#533953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c1c8b;
/* rgb */ color: rgb(92, 28, 139);
/* oklch */ color: oklch(38.9% 0.171 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f60ae',
    500: '#5c1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c8b;
$custom-light: #8f60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c8b",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 274.595,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.17111,
    "h": 305.8
  },
  "luminance": 0.0497
}

Semantic roles & 50–950 ramp

primary
#5C1C8B
secondary
#78BC47
accent
#E93E87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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