#5C2FA7#5C2FA7

#5C2FA7 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.180 H 294.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5C2FA7
RGBrgb(92, 47, 167)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(32.03, 46.59, -57.09)
CIE-LCHlch(32.03, 73.69, 309.22°)
OKLaboklab(43.47% 0.0759 -0.1634)
OKLCHoklch(43.47% 0.18 294.9)
XYZxyz(12.4033, 7.0980, 37.2683)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FA7 #7AA72F
analogous
#2F3EA7 #5C2FA7 #982FA7
triadic
#5C2FA7 #A75C2F #2FA75C
tetradic
#5C2FA7 #A72F3E #7AA72F #2FA798
square
#5C2FA7 #A72F3E #7AA72F #2FA798
split-complementary
#5C2FA7 #A7982F #3EA72F
monochromatic
#271447 #422277 #5C2FA7 #7948CB #9C78D9

Accessibility & contrast

On white

8.68
#5C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5C2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FA7
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FA7#FFFFFF#000000##FFFFFF
##5C2FA71.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2fa7;
/* rgb */ color: rgb(92, 47, 167);
/* oklch */ color: oklch(43.5% 0.180 294.9);
Tailwind
colors: {
  custom: {
    50: '#916bc2',
    500: '#5c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fa7;
$custom-light: #916bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fa7",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 262.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43471,
    "c": 0.18019,
    "h": 294.9
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#5C2FA7
secondary
#A3C171
accent
#DF48A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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