#5C1C7D#5C1C7D

#5C1C7D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.157 H 311.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5C1C7D
RGBrgb(92, 28, 125)
HSLhsl(280, 63%, 30%)
HSVhsv(280, 78%, 49%)
CMYKcmyk(26.4%, 77.6%, 0%, 51%)
CIE-LABlab(25.52, 44.88, -41.78)
CIE-LCHlch(25.52, 61.32, 317.05°)
OKLaboklab(37.8% 0.1032 -0.1183)
OKLCHoklch(37.8% 0.157 311.1)
XYZxyz(8.5299, 4.5867, 19.8340)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C7D #3D7D1C
analogous
#2C1C7D #5C1C7D #7D1C6D
triadic
#5C1C7D #7D5C1C #1C7D5C
tetradic
#5C1C7D #7D2C1C #3D7D1C #1C6D7D
square
#5C1C7D #7D2C1C #3D7D1C #1C6D7D
split-complementary
#5C1C7D #6D7D1C #1C7D2C
monochromatic
#120619 #37114B #5C1C7D #8127AF #A13FD4

Accessibility & contrast

On white

10.95
#5C1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C7D
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C7D#FFFFFF#000000##FFFFFF
##5C1C7D1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#083E7B
Tritanopia (blue-blind)
#58334B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1c7d;
/* rgb */ color: rgb(92, 28, 125);
/* oklch */ color: oklch(37.8% 0.157 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e60a3',
    500: '#5c1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c7d;
$custom-light: #8e60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c7d",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 279.588,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.15703,
    "h": 311.1
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#5C1C7D
secondary
#69B144
accent
#E6417A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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