#5C2B9B#5C2B9B

#5C2B9B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.171 H 298.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5C2B9B
RGBrgb(92, 43, 155)
HSLhsl(266, 57%, 39%)
HSVhsv(266, 72%, 61%)
CMYKcmyk(40.6%, 72.3%, 0%, 39.2%)
CIE-LABlab(30.33, 45.39, -52.60)
CIE-LCHlch(30.33, 69.48, 310.79°)
OKLaboklab(41.95% 0.0822 -0.1502)
OKLCHoklch(41.95% 0.171 298.7)
XYZxyz(11.1924, 6.3695, 31.6437)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B9B #6A9B2B
analogous
#2B329B #5C2B9B #942B9B
triadic
#5C2B9B #9B5C2B #2B9B5C
tetradic
#5C2B9B #9B2B32 #6A9B2B #2B9B94
square
#5C2B9B #9B2B32 #6A9B2B #2B9B94
split-complementary
#5C2B9B #9B942B #329B2B
monochromatic
#23103B #401E6B #5C2B9B #793BC9 #996BD6

Accessibility & contrast

On white

9.23
#5C2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B9B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B9B#FFFFFF#000000##FFFFFF
##5C2B9B1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4D4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2b9b;
/* rgb */ color: rgb(92, 43, 155);
/* oklch */ color: oklch(42.0% 0.171 298.7);
Tailwind
colors: {
  custom: {
    50: '#9069b9',
    500: '#5c2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b9b;
$custom-light: #9069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b9b",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 266.25,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41954,
    "c": 0.17126,
    "h": 298.7
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#5C2B9B
secondary
#96BC65
accent
#E0489D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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