#5C2FA2#5C2FA2

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

Color values

HEX#5C2FA2
RGBrgb(92, 47, 162)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 64%)
CMYKcmyk(43.2%, 71%, 0%, 36.5%)
CIE-LABlab(31.62, 45.24, -54.75)
CIE-LCHlch(31.62, 71.02, 309.57°)
OKLaboklab(43.05% 0.0769 -0.1565)
OKLCHoklch(43.05% 0.174 296.2)
XYZxyz(11.9500, 6.9167, 34.8809)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FA2 #75A22F
analogous
#2F3BA2 #5C2FA2 #952FA2
triadic
#5C2FA2 #A25C2F #2FA25C
tetradic
#5C2FA2 #A22F3B #75A22F #2FA295
square
#5C2FA2 #A22F3B #75A22F #2FA295
split-complementary
#5C2FA2 #A2952F #3BA22F
monochromatic
#261343 #412173 #5C2FA2 #7945C9 #9B75D7

Accessibility & contrast

On white

8.81
#5C2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5C2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FA2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FA2#FFFFFF#000000##FFFFFF
##5C2FA21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#4A4C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2fa2;
/* rgb */ color: rgb(92, 47, 162);
/* oklch */ color: oklch(43.0% 0.174 296.2);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fa2;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fa2",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 263.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43049,
    "c": 0.1744,
    "h": 296.2
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#5C2FA2
secondary
#9FBF6E
accent
#DE49A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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