#5C2FA3#5C2FA3

#5C2FA3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.176 H 295.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5C2FA3
RGBrgb(92, 47, 163)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 64%)
CMYKcmyk(43.6%, 71.2%, 0%, 36.1%)
CIE-LABlab(31.70, 45.51, -55.22)
CIE-LCHlch(31.70, 71.56, 309.49°)
OKLaboklab(43.13% 0.0767 -0.1579)
OKLCHoklch(43.13% 0.176 295.9)
XYZxyz(12.0393, 6.9524, 35.3509)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FA3 #76A32F
analogous
#2F3CA3 #5C2FA3 #962FA3
triadic
#5C2FA3 #A35C2F #2FA35C
tetradic
#5C2FA3 #A32F3C #76A32F #2FA396
square
#5C2FA3 #A32F3C #76A32F #2FA396
split-complementary
#5C2FA3 #A3962F #3CA32F
monochromatic
#261444 #412173 #5C2FA3 #7946CA #9B75D7

Accessibility & contrast

On white

8.78
#5C2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FA3
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FA3#FFFFFF#000000##FFFFFF
##5C2FA31.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2fa3;
/* rgb */ color: rgb(92, 47, 163);
/* oklch */ color: oklch(43.1% 0.176 295.9);
Tailwind
colors: {
  custom: {
    50: '#906bbf',
    500: '#5c2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fa3;
$custom-light: #906bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fa3",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 263.276,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.17557,
    "h": 295.9
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#5C2FA3
secondary
#A0BF6F
accent
#DF49A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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