#5C2FA6#5C2FA6

#5C2FA6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.179 H 295.2°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5C2FA6
RGBrgb(92, 47, 166)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.6%, 71.7%, 0%, 34.9%)
CIE-LABlab(31.95, 46.32, -56.63)
CIE-LCHlch(31.95, 73.16, 309.28°)
OKLaboklab(43.39% 0.0761 -0.1621)
OKLCHoklch(43.39% 0.179 295.2)
XYZxyz(12.3112, 7.0612, 36.7833)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FA6 #79A62F
analogous
#2F3EA6 #5C2FA6 #982FA6
triadic
#5C2FA6 #A65C2F #2FA65C
tetradic
#5C2FA6 #A62F3E #79A62F #2FA698
square
#5C2FA6 #A62F3E #79A62F #2FA698
split-complementary
#5C2FA6 #A6982F #3EA62F
monochromatic
#271447 #422176 #5C2FA6 #7947CB #9C77D8

Accessibility & contrast

On white

8.71
#5C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5C2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FA6
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FA6#FFFFFF#000000##FFFFFF
##5C2FA61.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#484D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2fa6;
/* rgb */ color: rgb(92, 47, 166);
/* oklch */ color: oklch(43.4% 0.179 295.2);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fa6;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fa6",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 262.689,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.17904,
    "h": 295.2
  },
  "luminance": 0.07062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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