#5C2AB1#5C2AB1

#5C2AB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.197 H 293.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5C2AB1
RGBrgb(92, 42, 177)
HSLhsl(262, 62%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(48%, 76.3%, 0%, 30.6%)
CIE-LABlab(32.05, 51.68, -63.06)
CIE-LCHlch(32.05, 81.53, 309.34°)
OKLaboklab(43.75% 0.078 -0.1809)
OKLCHoklch(43.75% 0.197 293.3)
XYZxyz(13.1752, 7.1051, 42.2637)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AB1 #7FB12A
analogous
#2A3CB1 #5C2AB1 #9F2AB1
triadic
#5C2AB1 #B15C2A #2AB15C
tetradic
#5C2AB1 #B12A3C #7FB12A #2AB19F
square
#5C2AB1 #B12A3C #7FB12A #2AB19F
split-complementary
#5C2AB1 #B19F2A #3CB12A
monochromatic
#29134E #421E80 #5C2AB1 #7A45D3 #9D77DF

Accessibility & contrast

On white

8.67
#5C2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5C2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AB1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AB1#FFFFFF#000000##FFFFFF
##5C2AB11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#424F6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2ab1;
/* rgb */ color: rgb(92, 42, 177);
/* oklch */ color: oklch(43.7% 0.197 293.3);
Tailwind
colors: {
  custom: {
    50: '#9369c9',
    500: '#5c2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ab1;
$custom-light: #9369c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ab1",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 262.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.19699,
    "h": 293.3
  },
  "luminance": 0.07106
}

Semantic roles & 50–950 ramp

primary
#5C2AB1
secondary
#A7C670
accent
#E543A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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