#5C2096#5C2096

#5C2096 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.178 H 301.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5C2096
RGBrgb(92, 32, 150)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(38.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(28.14, 49.14, -53.11)
CIE-LCHlch(28.14, 72.35, 312.78°)
OKLaboklab(40.28% 0.0938 -0.1516)
OKLCHoklch(40.28% 0.178 301.7)
XYZxyz(10.4338, 5.5103, 29.3621)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2096 #5A9620
analogous
#212096 #5C2096 #962095
triadic
#5C2096 #965C20 #20965C
tetradic
#5C2096 #962120 #5A9620 #209596
square
#5C2096 #962120 #5A9620 #209596
split-complementary
#5C2096 #959620 #209621
monochromatic
#1E0A31 #3D1564 #5C2096 #7B2BC8 #9956DB

Accessibility & contrast

On white

9.99
#5C2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2096
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2096#FFFFFF#000000##FFFFFF
##5C20961.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#4F3F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2096;
/* rgb */ color: rgb(92, 32, 150);
/* oklch */ color: oklch(40.3% 0.178 301.7);
Tailwind
colors: {
  custom: {
    50: '#9063b6',
    500: '#5c2096',
    950: '#000000',
  },
}
SCSS
$custom: #5c2096;
$custom-light: #9063b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2096",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 270.508,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.17827,
    "h": 301.7
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#5C2096
secondary
#88BE53
accent
#E84092
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2096

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

Preview Lab → · Contrast checker → · Palette generator →

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