#5B2FA7#5B2FA7

#5B2FA7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.180 H 294.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA7
RGBrgb(91, 47, 167)
HSLhsl(262, 56%, 42%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(45.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(31.91, 46.41, -57.29)
CIE-LCHlch(31.91, 73.73, 309.01°)
OKLaboklab(43.36% 0.0744 -0.164)
OKLCHoklch(43.36% 0.18 294.4)
XYZxyz(12.3041, 7.0469, 37.2636)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA7 #7BA72F
analogous
#2F3FA7 #5B2FA7 #972FA7
triadic
#5B2FA7 #A75B2F #2FA75B
tetradic
#5B2FA7 #A72F3F #7BA72F #2FA797
square
#5B2FA7 #A72F3F #7BA72F #2FA797
split-complementary
#5B2FA7 #A7972F #3FA72F
monochromatic
#271447 #412277 #5B2FA7 #7848CB #9B78D9

Accessibility & contrast

On white

8.72
#5B2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA7
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA7#FFFFFF#000000##FFFFFF
##5B2FA71.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#454E68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2fa7;
/* rgb */ color: rgb(91, 47, 167);
/* oklch */ color: oklch(43.4% 0.180 294.4);
Tailwind
colors: {
  custom: {
    50: '#906bc2',
    500: '#5b2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa7;
$custom-light: #906bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa7",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 262,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43362,
    "c": 0.18014,
    "h": 294.4
  },
  "luminance": 0.07047
}

Semantic roles & 50–950 ramp

primary
#5B2FA7
secondary
#A4C171
accent
#DF48A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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