#5C1B92#5C1B92

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

Color values

HEX#5C1B92
RGBrgb(92, 27, 146)
HSLhsl(273, 69%, 34%)
HSVhsv(273, 82%, 57%)
CMYKcmyk(37%, 81.5%, 0%, 42.7%)
CIE-LABlab(27.11, 50.15, -52.32)
CIE-LCHlch(27.11, 72.47, 313.78°)
OKLaboklab(39.46% 0.099 -0.1493)
OKLCHoklch(39.46% 0.179 303.6)
XYZxyz(9.9927, 5.1345, 27.6532)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B92 #51921B
analogous
#211B92 #5C1B92 #921B8D
triadic
#5C1B92 #925C1B #1B925C
tetradic
#5C1B92 #92211B #51921B #1B8D92
square
#5C1B92 #92211B #51921B #1B8D92
split-complementary
#5C1B92 #8D921B #1B9221
monochromatic
#1B082B #3B115E #5C1B92 #7D25C6 #9B4ADE

Accessibility & contrast

On white

10.36
#5C1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1B92
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B92#FFFFFF#000000##FFFFFF
##5C1B921.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#513B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1b92;
/* rgb */ color: rgb(92, 27, 146);
/* oklch */ color: oklch(39.5% 0.179 303.6);
Tailwind
colors: {
  custom: {
    50: '#9060b3',
    500: '#5c1b92',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b92;
$custom-light: #9060b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b92",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 272.773,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.17914,
    "h": 303.6
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#5C1B92
secondary
#7FBF49
accent
#EC3C8C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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