#5C2B9A#5C2B9A

#5C2B9A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.170 H 299.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5C2B9A
RGBrgb(92, 43, 154)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 72%, 60%)
CMYKcmyk(40.3%, 72.1%, 0%, 39.6%)
CIE-LABlab(30.24, 45.13, -52.13)
CIE-LCHlch(30.24, 68.95, 310.89°)
OKLaboklab(41.87% 0.0824 -0.1488)
OKLCHoklch(41.87% 0.17 299)
XYZxyz(11.1088, 6.3360, 31.2033)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B9A #699A2B
analogous
#2B329A #5C2B9A #932B9A
triadic
#5C2B9A #9A5C2B #2B9A5C
tetradic
#5C2B9A #9A2B32 #699A2B #2B9A93
square
#5C2B9A #9A2B32 #699A2B #2B9A93
split-complementary
#5C2B9A #9A932B #329A2B
monochromatic
#23103A #3F1E6A #5C2B9A #793AC8 #996AD5

Accessibility & contrast

On white

9.26
#5C2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2B9A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B9A#FFFFFF#000000##FFFFFF
##5C2B9A1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4D465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2b9a;
/* rgb */ color: rgb(92, 43, 154);
/* oklch */ color: oklch(41.9% 0.170 299.0);
Tailwind
colors: {
  custom: {
    50: '#9069b9',
    500: '#5c2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b9a;
$custom-light: #9069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b9a",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 266.486,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41871,
    "c": 0.17012,
    "h": 299
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#5C2B9A
secondary
#96BC65
accent
#E0489D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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