#5C2ED3#5C2ED3

#5C2ED3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.230 H 286.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5C2ED3
RGBrgb(92, 46, 211)
HSLhsl(257, 65%, 50%)
HSVhsv(257, 78%, 83%)
CMYKcmyk(56.4%, 78.2%, 0%, 17.3%)
CIE-LABlab(35.85, 59.01, -76.76)
CIE-LCHlch(35.85, 96.82, 307.55°)
OKLaboklab(47.37% 0.0653 -0.221)
OKLCHoklch(47.37% 0.23 286.5)
XYZxyz(17.1450, 8.9315, 62.4359)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2ED3 #A5D32E
analogous
#2E53D3 #5C2ED3 #AE2ED3
triadic
#5C2ED3 #D35C2E #2ED35C
tetradic
#5C2ED3 #D32E53 #A5D32E #2ED3AE
square
#5C2ED3 #D32E53 #A5D32E #2ED3AE
split-complementary
#5C2ED3 #D3AE2E #53D32E
monochromatic
#30176F #4622A2 #5C2ED3 #8361DE #AB93E8

Accessibility & contrast

On white

7.54
#5C2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5C2ED3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2ED3
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2ED3#FFFFFF#000000##FFFFFF
##5C2ED31.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#0050D0
Tritanopia (blue-blind)
#225F80
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c2ed3;
/* rgb */ color: rgb(92, 46, 211);
/* oklch */ color: oklch(47.4% 0.230 286.5);
Tailwind
colors: {
  custom: {
    50: '#976de2',
    500: '#5c2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ed3;
$custom-light: #976de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ed3",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 256.727,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47371,
    "c": 0.23049,
    "h": 286.5
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#5C2ED3
secondary
#BFD38A
accent
#E840B9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5C2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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