#5B2FA9#5B2FA9

#5B2FA9 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.182 H 293.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA9
RGBrgb(91, 47, 169)
HSLhsl(262, 56%, 42%)
HSVhsv(262, 72%, 66%)
CMYKcmyk(46.2%, 72.2%, 0%, 33.7%)
CIE-LABlab(32.08, 46.96, -58.21)
CIE-LCHlch(32.08, 74.79, 308.89°)
OKLaboklab(43.53% 0.074 -0.1668)
OKLCHoklch(43.53% 0.182 293.9)
XYZxyz(12.4904, 7.1214, 38.2449)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA9 #7DA92F
analogous
#2F40A9 #5B2FA9 #982FA9
triadic
#5B2FA9 #A95B2F #2FA95B
tetradic
#5B2FA9 #A92F40 #7DA92F #2FA998
square
#5B2FA9 #A92F40 #7DA92F #2FA998
split-complementary
#5B2FA9 #A9982F #40A92F
monochromatic
#271449 #412279 #5B2FA9 #7849CC #9C79DA

Accessibility & contrast

On white

8.66
#5B2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA9
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA9#FFFFFF#000000##FFFFFF
##5B2FA91.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#444E69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2fa9;
/* rgb */ color: rgb(91, 47, 169);
/* oklch */ color: oklch(43.5% 0.182 293.9);
Tailwind
colors: {
  custom: {
    50: '#916bc4',
    500: '#5b2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa9;
$custom-light: #916bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa9",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 261.639,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43534,
    "c": 0.18245,
    "h": 293.9
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#5B2FA9
secondary
#A5C272
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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