#5C1A8B#5C1A8B

#5C1A8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.173 H 306.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5C1A8B
RGBrgb(92, 26, 139)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 55%)
CMYKcmyk(33.8%, 81.3%, 0%, 45.5%)
CIE-LABlab(26.39, 48.87, -49.17)
CIE-LCHlch(26.39, 69.33, 314.83°)
OKLaboklab(38.76% 0.1018 -0.14)
OKLCHoklch(38.76% 0.173 306)
XYZxyz(9.4422, 4.8783, 24.8653)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A8B #498B1A
analogous
#231A8B #5C1A8B #8B1A82
triadic
#5C1A8B #8B5C1A #1A8B5C
tetradic
#5C1A8B #8B231A #498B1A #1A828B
square
#5C1A8B #8B231A #498B1A #1A828B
split-complementary
#5C1A8B #828B1A #1A8B23
monochromatic
#180724 #3A1057 #5C1A8B #7E24BF #9D43DC

Accessibility & contrast

On white

10.63
#5C1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5C1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A8B
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A8B#FFFFFF#000000##FFFFFF
##5C1A8B1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1a8b;
/* rgb */ color: rgb(92, 26, 139);
/* oklch */ color: oklch(38.8% 0.173 306.0);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5c1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a8b;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a8b",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 275.044,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38764,
    "c": 0.17312,
    "h": 306
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#5C1A8B
secondary
#76BD44
accent
#EB3C85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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