#5C2FA1#5C2FA1

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

Color values

HEX#5C2FA1
RGBrgb(92, 47, 161)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 63%)
CMYKcmyk(42.9%, 70.8%, 0%, 36.9%)
CIE-LABlab(31.54, 44.97, -54.28)
CIE-LCHlch(31.54, 70.49, 309.64°)
OKLaboklab(42.97% 0.0771 -0.1552)
OKLCHoklch(42.97% 0.173 296.4)
XYZxyz(11.8615, 6.8813, 34.4146)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FA1 #74A12F
analogous
#2F3BA1 #5C2FA1 #952FA1
triadic
#5C2FA1 #A15C2F #2FA15C
tetradic
#5C2FA1 #A12F3B #74A12F #2FA195
square
#5C2FA1 #A12F3B #74A12F #2FA195
split-complementary
#5C2FA1 #A1952F #3BA12F
monochromatic
#261342 #412172 #5C2FA1 #7945C9 #9B74D6

Accessibility & contrast

On white

8.84
#5C2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2FA1
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FA1#FFFFFF#000000##FFFFFF
##5C2FA11.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4A4B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2fa1;
/* rgb */ color: rgb(92, 47, 161);
/* oklch */ color: oklch(43.0% 0.173 296.4);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5c2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fa1;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fa1",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 263.684,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42966,
    "c": 0.17324,
    "h": 296.4
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#5C2FA1
secondary
#9EBE6E
accent
#DE4AA4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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