#5C2EAB#5C2EAB

#5C2EAB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.186 H 294.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5C2EAB
RGBrgb(92, 46, 171)
HSLhsl(262, 58%, 43%)
HSVhsv(262, 73%, 67%)
CMYKcmyk(46.2%, 73.1%, 0%, 32.9%)
CIE-LABlab(32.19, 48.17, -59.23)
CIE-LCHlch(32.19, 76.35, 309.12°)
OKLaboklab(43.69% 0.076 -0.1697)
OKLCHoklch(43.69% 0.186 294.1)
XYZxyz(12.7393, 7.1692, 39.2328)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EAB #7DAB2E
analogous
#2E3EAB #5C2EAB #9B2EAB
triadic
#5C2EAB #AB5C2E #2EAB5C
tetradic
#5C2EAB #AB2E3E #7DAB2E #2EAB9B
square
#5C2EAB #AB2E3E #7DAB2E #2EAB9B
split-complementary
#5C2EAB #AB9B2E #3EAB2E
monochromatic
#28144B #42217B #5C2EAB #7948CE #9D79DB

Accessibility & contrast

On white

8.63
#5C2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2EAB
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EAB#FFFFFF#000000##FFFFFF
##5C2EAB1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#454E6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c2eab;
/* rgb */ color: rgb(92, 46, 171);
/* oklch */ color: oklch(43.7% 0.186 294.1);
Tailwind
colors: {
  custom: {
    50: '#926bc5',
    500: '#5c2eab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2eab;
$custom-light: #926bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2eab",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 262.08,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43689,
    "c": 0.18595,
    "h": 294.1
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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