#5C2EA6#5C2EA6

#5C2EA6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.180 H 295.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA6
RGBrgb(92, 46, 166)
HSLhsl(263, 57%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.6%, 72.3%, 0%, 34.9%)
CIE-LABlab(31.77, 46.82, -56.92)
CIE-LCHlch(31.77, 73.70, 309.44°)
OKLaboklab(43.26% 0.0771 -0.1629)
OKLCHoklch(43.26% 0.18 295.3)
XYZxyz(12.2717, 6.9822, 36.7701)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA6 #78A62E
analogous
#2E3CA6 #5C2EA6 #982EA6
triadic
#5C2EA6 #A65C2E #2EA65C
tetradic
#5C2EA6 #A62E3C #78A62E #2EA698
square
#5C2EA6 #A62E3C #78A62E #2EA698
split-complementary
#5C2EA6 #A6982E #3CA62E
monochromatic
#271346 #412176 #5C2EA6 #7946CC #9C76D9

Accessibility & contrast

On white

8.76
#5C2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA6
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA6#FFFFFF#000000##FFFFFF
##5C2EA61.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#484D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2ea6;
/* rgb */ color: rgb(92, 46, 166);
/* oklch */ color: oklch(43.3% 0.180 295.3);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5c2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea6;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea6",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 263,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43259,
    "c": 0.18023,
    "h": 295.3
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

primary
#5C2EA6
secondary
#A1C16F
accent
#E048A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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