#5C2EAA#5C2EAA

#5C2EAA is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.185 H 294.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5C2EAA
RGBrgb(92, 46, 170)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 73%, 67%)
CMYKcmyk(45.9%, 72.9%, 0%, 33.3%)
CIE-LABlab(32.10, 47.90, -58.77)
CIE-LCHlch(32.10, 75.82, 309.18°)
OKLaboklab(43.6% 0.0762 -0.1684)
OKLCHoklch(43.6% 0.185 294.4)
XYZxyz(12.6444, 7.1312, 38.7327)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EAA #7CAA2E
analogous
#2E3EAA #5C2EAA #9A2EAA
triadic
#5C2EAA #AA5C2E #2EAA5C
tetradic
#5C2EAA #AA2E3E #7CAA2E #2EAA9A
square
#5C2EAA #AA2E3E #7CAA2E #2EAA9A
split-complementary
#5C2EAA #AA9A2E #3EAA2E
monochromatic
#28144A #42217A #5C2EAA #7948CD #9C78DA

Accessibility & contrast

On white

8.65
#5C2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5C2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EAA
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EAA#FFFFFF#000000##FFFFFF
##5C2EAA1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#464E69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c2eaa;
/* rgb */ color: rgb(92, 46, 170);
/* oklch */ color: oklch(43.6% 0.185 294.4);
Tailwind
colors: {
  custom: {
    50: '#916bc4',
    500: '#5c2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5c2eaa;
$custom-light: #916bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2eaa",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 262.258,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43602,
    "c": 0.18481,
    "h": 294.4
  },
  "luminance": 0.07132
}

Semantic roles & 50–950 ramp

primary
#5C2EAA
secondary
#A4C371
accent
#E147A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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