#5C2A97#5C2A97

#5C2A97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.168 H 300.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5C2A97
RGBrgb(92, 42, 151)
HSLhsl(268, 56%, 38%)
HSVhsv(268, 72%, 59%)
CMYKcmyk(39.1%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.83, 44.84, -50.97)
CIE-LCHlch(29.83, 67.89, 311.34°)
OKLaboklab(41.5% 0.084 -0.1454)
OKLCHoklch(41.5% 0.168 300)
XYZxyz(10.8261, 6.1655, 29.8918)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A97 #65972A
analogous
#2A2E97 #5C2A97 #922A97
triadic
#5C2A97 #975C2A #2A975C
tetradic
#5C2A97 #972A2E #65972A #2A9792
square
#5C2A97 #972A2E #65972A #2A9792
split-complementary
#5C2A97 #97922A #2E972A
monochromatic
#220F37 #3F1D67 #5C2A97 #7937C7 #9967D5

Accessibility & contrast

On white

9.40
#5C2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2A97
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A97#FFFFFF#000000##FFFFFF
##5C2A971.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4F455D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2a97;
/* rgb */ color: rgb(92, 42, 151);
/* oklch */ color: oklch(41.5% 0.168 300.0);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5c2a97',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a97;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a97",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 267.523,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41497,
    "c": 0.16796,
    "h": 300
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#5C2A97
secondary
#92BB62
accent
#E0489A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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