#5C2EA5#5C2EA5

#5C2EA5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.179 H 295.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA5
RGBrgb(92, 46, 165)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.2%, 72.1%, 0%, 35.3%)
CIE-LABlab(31.68, 46.55, -56.45)
CIE-LCHlch(31.68, 73.17, 309.51°)
OKLaboklab(43.17% 0.0773 -0.1615)
OKLCHoklch(43.17% 0.179 295.6)
XYZxyz(12.1803, 6.9456, 36.2889)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA5 #77A52E
analogous
#2E3CA5 #5C2EA5 #982EA5
triadic
#5C2EA5 #A55C2E #2EA55C
tetradic
#5C2EA5 #A52E3C #77A52E #2EA598
square
#5C2EA5 #A52E3C #77A52E #2EA598
split-complementary
#5C2EA5 #A5982E #3CA52E
monochromatic
#271345 #412175 #5C2EA5 #7945CB #9B75D8

Accessibility & contrast

On white

8.79
#5C2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA5
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA5#FFFFFF#000000##FFFFFF
##5C2EA51.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#484C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2ea5;
/* rgb */ color: rgb(92, 46, 165);
/* oklch */ color: oklch(43.2% 0.179 295.6);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5c2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea5;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea5",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 263.193,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.17908,
    "h": 295.6
  },
  "luminance": 0.06946
}

Semantic roles & 50–950 ramp

primary
#5C2EA5
secondary
#A1C06F
accent
#E048A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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