#5C2CB1#5C2CB1

#5C2CB1 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.195 H 293.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5C2CB1
RGBrgb(92, 44, 177)
HSLhsl(262, 60%, 43%)
HSVhsv(262, 75%, 69%)
CMYKcmyk(48%, 75.1%, 0%, 30.6%)
CIE-LABlab(32.37, 50.75, -62.52)
CIE-LCHlch(32.37, 80.53, 309.07°)
OKLaboklab(43.98% 0.0763 -0.1793)
OKLCHoklch(43.98% 0.195 293.1)
XYZxyz(13.2479, 7.2506, 42.2879)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2CB1 #81B12C
analogous
#2C3EB1 #5C2CB1 #9E2CB1
triadic
#5C2CB1 #B15C2C #2CB15C
tetradic
#5C2CB1 #B12C3E #81B12C #2CB19E
square
#5C2CB1 #B12C3E #81B12C #2CB19E
split-complementary
#5C2CB1 #B19E2C #3EB12C
monochromatic
#29144F #432080 #5C2CB1 #7A49D2 #9E7ADE

Accessibility & contrast

On white

8.57
#5C2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5C2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2CB1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2CB1#FFFFFF#000000##FFFFFF
##5C2CB11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#42506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c2cb1;
/* rgb */ color: rgb(92, 44, 177);
/* oklch */ color: oklch(44.0% 0.195 293.1);
Tailwind
colors: {
  custom: {
    50: '#926ac9',
    500: '#5c2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2cb1;
$custom-light: #926ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2cb1",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 261.654,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43978,
    "c": 0.19492,
    "h": 293.1
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#5C2CB1
secondary
#A8C673
accent
#E344AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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