#5C2BB1#5C2BB1

#5C2BB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.196 H 293.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5C2BB1
RGBrgb(92, 43, 177)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(48%, 75.7%, 0%, 30.6%)
CIE-LABlab(32.21, 51.22, -62.79)
CIE-LCHlch(32.21, 81.03, 309.20°)
OKLaboklab(43.86% 0.0772 -0.1801)
OKLCHoklch(43.86% 0.196 293.2)
XYZxyz(13.2111, 7.1770, 42.2757)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BB1 #80B12B
analogous
#2B3DB1 #5C2BB1 #9F2BB1
triadic
#5C2BB1 #B15C2B #2BB15C
tetradic
#5C2BB1 #B12B3D #80B12B #2BB19F
square
#5C2BB1 #B12B3D #80B12B #2BB19F
split-complementary
#5C2BB1 #B19F2B #3DB12B
monochromatic
#29134F #421F80 #5C2BB1 #7A47D2 #9D78DE

Accessibility & contrast

On white

8.62
#5C2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5C2BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2BB1
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2BB1#FFFFFF#000000##FFFFFF
##5C2BB11.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2bb1;
/* rgb */ color: rgb(92, 43, 177);
/* oklch */ color: oklch(43.9% 0.196 293.2);
Tailwind
colors: {
  custom: {
    50: '#936ac9',
    500: '#5c2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2bb1;
$custom-light: #936ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2bb1",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 261.94,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43863,
    "c": 0.19596,
    "h": 293.2
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#5C2BB1
secondary
#A7C672
accent
#E444A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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