#5C2FAB#5C2FAB

#5C2FAB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.185 H 294.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5C2FAB
RGBrgb(92, 47, 171)
HSLhsl(262, 57%, 43%)
HSVhsv(262, 73%, 67%)
CMYKcmyk(46.2%, 72.5%, 0%, 32.9%)
CIE-LABlab(32.37, 47.67, -58.95)
CIE-LCHlch(32.37, 75.81, 308.97°)
OKLaboklab(43.81% 0.0751 -0.1689)
OKLCHoklch(43.81% 0.185 294)
XYZxyz(12.7788, 7.2482, 39.2459)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FAB #7EAB2F
analogous
#2F40AB #5C2FAB #9A2FAB
triadic
#5C2FAB #AB5C2F #2FAB5C
tetradic
#5C2FAB #AB2F40 #7EAB2F #2FAB9A
square
#5C2FAB #AB2F40 #7EAB2F #2FAB9A
split-complementary
#5C2FAB #AB9A2F #40AB2F
monochromatic
#28154B #42227B #5C2FAB #7A4ACD #9D7ADA

Accessibility & contrast

On white

8.57
#5C2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5C2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FAB
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FAB#FFFFFF#000000##FFFFFF
##5C2FAB1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#454F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c2fab;
/* rgb */ color: rgb(92, 47, 171);
/* oklch */ color: oklch(43.8% 0.185 294.0);
Tailwind
colors: {
  custom: {
    50: '#916cc5',
    500: '#5c2fab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fab;
$custom-light: #916cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fab",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 261.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.1848,
    "h": 294
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#5C2FAB
secondary
#A6C373
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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