#5C1B94#5C1B94

#5C1B94 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.181 H 302.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5C1B94
RGBrgb(92, 27, 148)
HSLhsl(272, 69%, 34%)
HSVhsv(272, 82%, 58%)
CMYKcmyk(37.8%, 81.8%, 0%, 42%)
CIE-LABlab(27.29, 50.62, -53.27)
CIE-LCHlch(27.29, 73.48, 313.54°)
OKLaboklab(39.64% 0.0984 -0.1521)
OKLCHoklch(39.64% 0.181 302.9)
XYZxyz(10.1496, 5.1973, 28.4797)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B94 #53941B
analogous
#1F1B94 #5C1B94 #941B90
triadic
#5C1B94 #945C1B #1B945C
tetradic
#5C1B94 #941F1B #53941B #1B9094
square
#5C1B94 #941F1B #53941B #1B9094
split-complementary
#5C1B94 #90941B #1B941F
monochromatic
#1C082C #3C1260 #5C1B94 #7C24C8 #9A4BDE

Accessibility & contrast

On white

10.30
#5C1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5C1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1B94
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B94#FFFFFF#000000##FFFFFF
##5C1B941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1b94;
/* rgb */ color: rgb(92, 27, 148);
/* oklch */ color: oklch(39.6% 0.181 302.9);
Tailwind
colors: {
  custom: {
    50: '#9060b4',
    500: '#5c1b94',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b94;
$custom-light: #9060b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b94",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 272.231,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39635,
    "c": 0.18114,
    "h": 302.9
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#5C1B94
secondary
#81C04B
accent
#EC3C8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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