#5C2EA0#5C2EA0

#5C2EA0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.173 H 296.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA0
RGBrgb(92, 46, 160)
HSLhsl(264, 55%, 40%)
HSVhsv(264, 71%, 63%)
CMYKcmyk(42.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.27, 45.21, -54.10)
CIE-LCHlch(31.27, 70.51, 309.88°)
OKLaboklab(42.75% 0.0783 -0.1546)
OKLCHoklch(42.75% 0.173 296.8)
XYZxyz(11.7341, 6.7671, 33.9388)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA0 #72A02E
analogous
#2E39A0 #5C2EA0 #952EA0
triadic
#5C2EA0 #A05C2E #2EA05C
tetradic
#5C2EA0 #A02E39 #72A02E #2EA095
square
#5C2EA0 #A02E39 #72A02E #2EA095
split-complementary
#5C2EA0 #A0952E #39A02E
monochromatic
#251341 #412070 #5C2EA0 #7942C9 #9B72D6

Accessibility & contrast

On white

8.92
#5C2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA0
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA0#FFFFFF#000000##FFFFFF
##5C2EA01.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#4B4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ea0;
/* rgb */ color: rgb(92, 46, 160);
/* oklch */ color: oklch(42.8% 0.173 296.8);
Tailwind
colors: {
  custom: {
    50: '#906bbd',
    500: '#5c2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea0;
$custom-light: #906bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea0",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 264.211,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42752,
    "c": 0.17331,
    "h": 296.8
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#5C2EA0
secondary
#9DBE6C
accent
#DF49A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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