#5C2EA7#5C2EA7

#5C2EA7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.181 H 295.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA7
RGBrgb(92, 46, 167)
HSLhsl(263, 57%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(31.85, 47.09, -57.38)
CIE-LCHlch(31.85, 74.23, 309.37°)
OKLaboklab(43.34% 0.0769 -0.1643)
OKLCHoklch(43.34% 0.181 295.1)
XYZxyz(12.3638, 7.0190, 37.2551)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA7 #79A72E
analogous
#2E3CA7 #5C2EA7 #992EA7
triadic
#5C2EA7 #A75C2E #2EA75C
tetradic
#5C2EA7 #A72E3C #79A72E #2EA799
square
#5C2EA7 #A72E3C #79A72E #2EA799
split-complementary
#5C2EA7 #A7992E #3CA72E
monochromatic
#271447 #422177 #5C2EA7 #7946CC #9C76D9

Accessibility & contrast

On white

8.74
#5C2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA7
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA7#FFFFFF#000000##FFFFFF
##5C2EA71.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#474D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2ea7;
/* rgb */ color: rgb(92, 46, 167);
/* oklch */ color: oklch(43.3% 0.181 295.1);
Tailwind
colors: {
  custom: {
    50: '#916bc2',
    500: '#5c2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea7;
$custom-light: #916bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea7",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 262.81,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43344,
    "c": 0.18137,
    "h": 295.1
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#5C2EA7
secondary
#A2C170
accent
#E048A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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