#5B2FA6#5B2FA6

#5B2FA6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.179 H 294.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA6
RGBrgb(91, 47, 166)
HSLhsl(262, 56%, 42%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(45.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(31.83, 46.14, -56.82)
CIE-LCHlch(31.83, 73.19, 309.08°)
OKLaboklab(43.28% 0.0746 -0.1627)
OKLCHoklch(43.28% 0.179 294.6)
XYZxyz(12.2120, 7.0100, 36.7786)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA6 #7AA62F
analogous
#2F3EA6 #5B2FA6 #972FA6
triadic
#5B2FA6 #A65B2F #2FA65B
tetradic
#5B2FA6 #A62F3E #7AA62F #2FA697
square
#5B2FA6 #A62F3E #7AA62F #2FA697
split-complementary
#5B2FA6 #A6972F #3EA62F
monochromatic
#271447 #412176 #5B2FA6 #7847CB #9B77D8

Accessibility & contrast

On white

8.74
#5B2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA6
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA6#FFFFFF#000000##FFFFFF
##5B2FA61.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#464D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2fa6;
/* rgb */ color: rgb(91, 47, 166);
/* oklch */ color: oklch(43.3% 0.179 294.6);
Tailwind
colors: {
  custom: {
    50: '#906bc1',
    500: '#5b2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa6;
$custom-light: #906bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa6",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 262.185,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43277,
    "c": 0.17897,
    "h": 294.6
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#5B2FA6
secondary
#A3C170
accent
#DF49A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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