#5B2FA3#5B2FA3

#5B2FA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.175 H 295.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA3
RGBrgb(91, 47, 163)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 64%)
CMYKcmyk(44.2%, 71.2%, 0%, 36.1%)
CIE-LABlab(31.58, 45.32, -55.42)
CIE-LCHlch(31.58, 71.59, 309.28°)
OKLaboklab(43.02% 0.0752 -0.1585)
OKLCHoklch(43.02% 0.175 295.4)
XYZxyz(11.9400, 6.9012, 35.3462)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA3 #77A32F
analogous
#2F3DA3 #5B2FA3 #952FA3
triadic
#5B2FA3 #A35B2F #2FA35B
tetradic
#5B2FA3 #A32F3D #77A32F #2FA395
square
#5B2FA3 #A32F3D #77A32F #2FA395
split-complementary
#5B2FA3 #A3952F #3DA32F
monochromatic
#261444 #402173 #5B2FA3 #7846CA #9A75D7

Accessibility & contrast

On white

8.82
#5B2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA3
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA3#FFFFFF#000000##FFFFFF
##5B2FA31.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#474C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2fa3;
/* rgb */ color: rgb(91, 47, 163);
/* oklch */ color: oklch(43.0% 0.175 295.4);
Tailwind
colors: {
  custom: {
    50: '#906bbf',
    500: '#5b2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa3;
$custom-light: #906bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa3",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 262.759,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43023,
    "c": 0.17549,
    "h": 295.4
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#5B2FA3
secondary
#A1BF6F
accent
#DF49A6
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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