#5C1C8D#5C1C8D

#5C1C8D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.173 H 305.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5C1C8D
RGBrgb(92, 28, 141)
HSLhsl(274, 67%, 33%)
HSVhsv(274, 80%, 55%)
CMYKcmyk(34.8%, 80.1%, 0%, 44.7%)
CIE-LABlab(26.82, 48.58, -49.71)
CIE-LCHlch(26.82, 69.51, 314.34°)
OKLaboklab(39.12% 0.0996 -0.1416)
OKLCHoklch(39.12% 0.173 305.1)
XYZxyz(9.6355, 5.0290, 25.6572)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C8D #4D8D1C
analogous
#231C8D #5C1C8D #8D1C85
triadic
#5C1C8D #8D5C1C #1C8D5C
tetradic
#5C1C8D #8D231C #4D8D1C #1C858D
square
#5C1C8D #8D231C #4D8D1C #1C858D
split-complementary
#5C1C8D #858D1C #1C8D23
monochromatic
#190827 #3B125A #5C1C8D #7D26C0 #9B49DB

Accessibility & contrast

On white

10.47
#5C1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5C1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C8D
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C8D#FFFFFF#000000##FFFFFF
##5C1C8D1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#533A54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c1c8d;
/* rgb */ color: rgb(92, 28, 141);
/* oklch */ color: oklch(39.1% 0.173 305.1);
Tailwind
colors: {
  custom: {
    50: '#8f60af',
    500: '#5c1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c8d;
$custom-light: #8f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c8d",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 273.982,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.17313,
    "h": 305.1
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#5C1C8D
secondary
#7BBD48
accent
#EA3E89
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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