#5B2FAC#5B2FAC

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

Color values

HEX#5B2FAC
RGBrgb(91, 47, 172)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(47.1%, 72.7%, 0%, 32.5%)
CIE-LABlab(32.34, 47.77, -59.60)
CIE-LCHlch(32.34, 76.38, 308.72°)
OKLaboklab(43.79% 0.0734 -0.1708)
OKLCHoklch(43.79% 0.186 293.2)
XYZxyz(12.7752, 7.2353, 39.7452)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FAC #80AC2F
analogous
#2F41AC #5B2FAC #992FAC
triadic
#5B2FAC #AC5B2F #2FAC5B
tetradic
#5B2FAC #AC2F41 #80AC2F #2FAC99
square
#5B2FAC #AC2F41 #80AC2F #2FAC99
split-complementary
#5B2FAC #AC992F #41AC2F
monochromatic
#28154C #42227C #5B2FAC #794BCE #9C7BDB

Accessibility & contrast

On white

8.58
#5B2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2FAC
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FAC#FFFFFF#000000##FFFFFF
##5B2FAC1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#434F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2fac;
/* rgb */ color: rgb(91, 47, 172);
/* oklch */ color: oklch(43.8% 0.186 293.2);
Tailwind
colors: {
  custom: {
    50: '#916cc6',
    500: '#5b2fac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fac;
$custom-light: #916cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fac",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 261.12,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.18591,
    "h": 293.2
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#5B2FAC
secondary
#A7C374
accent
#E047AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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