#5C2A96#5C2A96

#5C2A96 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.167 H 300.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5C2A96
RGBrgb(92, 42, 150)
HSLhsl(268, 56%, 38%)
HSVhsv(268, 72%, 59%)
CMYKcmyk(38.7%, 72%, 0%, 41.2%)
CIE-LABlab(29.75, 44.59, -50.49)
CIE-LCHlch(29.75, 67.36, 311.44°)
OKLaboklab(41.42% 0.0842 -0.144)
OKLCHoklch(41.42% 0.167 300.3)
XYZxyz(10.7453, 6.1332, 29.4660)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A96 #64962A
analogous
#2A2E96 #5C2A96 #922A96
triadic
#5C2A96 #965C2A #2A965C
tetradic
#5C2A96 #962A2E #64962A #2A9692
square
#5C2A96 #962A2E #64962A #2A9692
split-complementary
#5C2A96 #96922A #2E962A
monochromatic
#210F36 #3F1D66 #5C2A96 #7937C6 #9966D4

Accessibility & contrast

On white

9.43
#5C2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A96
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A96#FFFFFF#000000##FFFFFF
##5C2A961.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#4F445D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2a96;
/* rgb */ color: rgb(92, 42, 150);
/* oklch */ color: oklch(41.4% 0.167 300.3);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5c2a96',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a96;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a96",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 267.778,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41415,
    "c": 0.16682,
    "h": 300.3
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#5C2A96
secondary
#91BA61
accent
#E0489A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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