#5C2EA3#5C2EA3

#5C2EA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.177 H 296.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA3
RGBrgb(92, 46, 163)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(43.6%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.52, 46.02, -55.52)
CIE-LCHlch(31.52, 72.11, 309.65°)
OKLaboklab(43% 0.0777 -0.1588)
OKLCHoklch(43% 0.177 296.1)
XYZxyz(11.9997, 6.8734, 35.3377)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA3 #75A32E
analogous
#2E3AA3 #5C2EA3 #962EA3
triadic
#5C2EA3 #A35C2E #2EA35C
tetradic
#5C2EA3 #A32E3A #75A32E #2EA396
square
#5C2EA3 #A32E3A #75A32E #2EA396
split-complementary
#5C2EA3 #A3962E #3AA32E
monochromatic
#261344 #412173 #5C2EA3 #7944CA #9B74D8

Accessibility & contrast

On white

8.84
#5C2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5C2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA3
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA3#FFFFFF#000000##FFFFFF
##5C2EA31.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#494B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ea3;
/* rgb */ color: rgb(92, 46, 163);
/* oklch */ color: oklch(43.0% 0.177 296.1);
Tailwind
colors: {
  custom: {
    50: '#916bbf',
    500: '#5c2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea3;
$custom-light: #916bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea3",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 263.59,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43004,
    "c": 0.17678,
    "h": 296.1
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#5C2EA3
secondary
#9FBF6D
accent
#DF49A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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