#5B2FA2#5B2FA2

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

Color values

HEX#5B2FA2
RGBrgb(91, 47, 162)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 64%)
CMYKcmyk(43.8%, 71%, 0%, 36.5%)
CIE-LABlab(31.50, 45.05, -54.95)
CIE-LCHlch(31.50, 71.06, 309.35°)
OKLaboklab(42.94% 0.0754 -0.1572)
OKLCHoklch(42.94% 0.174 295.6)
XYZxyz(11.8508, 6.8655, 34.8762)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA2 #76A22F
analogous
#2F3CA2 #5B2FA2 #942FA2
triadic
#5B2FA2 #A25B2F #2FA25B
tetradic
#5B2FA2 #A22F3C #76A22F #2FA294
square
#5B2FA2 #A22F3C #76A22F #2FA294
split-complementary
#5B2FA2 #A2942F #3CA22F
monochromatic
#261343 #402173 #5B2FA2 #7845C9 #9A75D7

Accessibility & contrast

On white

8.85
#5B2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA2#FFFFFF#000000##FFFFFF
##5B2FA21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#484C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2fa2;
/* rgb */ color: rgb(91, 47, 162);
/* oklch */ color: oklch(42.9% 0.174 295.6);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5b2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa2;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa2",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 262.957,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42939,
    "c": 0.17431,
    "h": 295.6
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#5B2FA2
secondary
#A0BF6E
accent
#DE49A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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