#5C2EA1#5C2EA1

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

Color values

HEX#5C2EA1
RGBrgb(92, 46, 161)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 71%, 63%)
CMYKcmyk(42.9%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.35, 45.48, -54.58)
CIE-LCHlch(31.35, 71.04, 309.81°)
OKLaboklab(42.84% 0.0781 -0.156)
OKLCHoklch(42.84% 0.174 296.6)
XYZxyz(11.8220, 6.8023, 34.4014)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA1 #73A12E
analogous
#2E39A1 #5C2EA1 #952EA1
triadic
#5C2EA1 #A15C2E #2EA15C
tetradic
#5C2EA1 #A12E39 #73A12E #2EA195
square
#5C2EA1 #A12E39 #73A12E #2EA195
split-complementary
#5C2EA1 #A1952E #39A12E
monochromatic
#261342 #412071 #5C2EA1 #7943C9 #9B73D7

Accessibility & contrast

On white

8.90
#5C2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5C2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA1
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA1#FFFFFF#000000##FFFFFF
##5C2EA11.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#4A4B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ea1;
/* rgb */ color: rgb(92, 46, 161);
/* oklch */ color: oklch(42.8% 0.174 296.6);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5c2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea1;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea1",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42836,
    "c": 0.17447,
    "h": 296.6
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#5C2EA1
secondary
#9EBE6C
accent
#DF49A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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