#5C2A9E#5C2A9E

#5C2A9E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.176 H 298.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5C2A9E
RGBrgb(92, 42, 158)
HSLhsl(266, 58%, 39%)
HSVhsv(266, 73%, 62%)
CMYKcmyk(41.8%, 73.4%, 0%, 38%)
CIE-LABlab(30.40, 46.67, -54.31)
CIE-LCHlch(30.40, 71.61, 310.67°)
OKLaboklab(42.08% 0.0826 -0.1552)
OKLCHoklch(42.08% 0.176 298)
XYZxyz(11.4116, 6.3997, 32.9752)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A9E #6C9E2A
analogous
#2A329E #5C2A9E #962A9E
triadic
#5C2A9E #9E5C2A #2A9E5C
tetradic
#5C2A9E #9E2A32 #6C9E2A #2A9E96
square
#5C2A9E #9E2A32 #6C9E2A #2A9E96
split-complementary
#5C2A9E #9E962A #329E2A
monochromatic
#24103D #401D6E #5C2A9E #793ACB #9A6BD8

Accessibility & contrast

On white

9.21
#5C2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A9E
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A9E#FFFFFF#000000##FFFFFF
##5C2A9E1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4C4761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2a9e;
/* rgb */ color: rgb(92, 42, 158);
/* oklch */ color: oklch(42.1% 0.176 298.0);
Tailwind
colors: {
  custom: {
    50: '#9068bc',
    500: '#5c2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a9e;
$custom-light: #9068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a9e",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 265.862,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42082,
    "c": 0.17585,
    "h": 298
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#5C2A9E
secondary
#98BE66
accent
#E1479F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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