#5C2BB2#5C2BB2

#5C2BB2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.197 H 293.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5C2BB2
RGBrgb(92, 43, 178)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 70%)
CMYKcmyk(48.3%, 75.8%, 0%, 30.2%)
CIE-LABlab(32.30, 51.48, -63.24)
CIE-LCHlch(32.30, 81.55, 309.15°)
OKLaboklab(43.95% 0.0769 -0.1814)
OKLCHoklch(43.95% 0.197 293)
XYZxyz(13.3112, 7.2170, 42.8025)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BB2 #81B22B
analogous
#2B3DB2 #5C2BB2 #9F2BB2
triadic
#5C2BB2 #B25C2B #2BB25C
tetradic
#5C2BB2 #B22B3D #81B22B #2BB29F
square
#5C2BB2 #B22B3D #81B22B #2BB29F
split-complementary
#5C2BB2 #B29F2B #3DB22B
monochromatic
#29134F #431F81 #5C2BB2 #7A48D3 #9E79DF

Accessibility & contrast

On white

8.59
#5C2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2BB2
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2BB2#FFFFFF#000000##FFFFFF
##5C2BB21.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#41506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c2bb2;
/* rgb */ color: rgb(92, 43, 178);
/* oklch */ color: oklch(44.0% 0.197 293.0);
Tailwind
colors: {
  custom: {
    50: '#936aca',
    500: '#5c2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2bb2;
$custom-light: #936aca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2bb2",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 261.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43953,
    "c": 0.19707,
    "h": 293
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#5C2BB2
secondary
#A8C772
accent
#E444AA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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