#5B2FAB#5B2FAB

#5B2FAB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.185 H 293.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5B2FAB
RGBrgb(91, 47, 171)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(46.8%, 72.5%, 0%, 32.9%)
CIE-LABlab(32.25, 47.50, -59.14)
CIE-LCHlch(32.25, 75.85, 308.77°)
OKLaboklab(43.71% 0.0736 -0.1695)
OKLCHoklch(43.71% 0.185 293.5)
XYZxyz(12.6796, 7.1971, 39.2413)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FAB #7FAB2F
analogous
#2F41AB #5B2FAB #992FAB
triadic
#5B2FAB #AB5B2F #2FAB5B
tetradic
#5B2FAB #AB2F41 #7FAB2F #2FAB99
square
#5B2FAB #AB2F41 #7FAB2F #2FAB99
split-complementary
#5B2FAB #AB992F #41AB2F
monochromatic
#28154B #41227B #5B2FAB #794ACD #9C7ADA

Accessibility & contrast

On white

8.61
#5B2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FAB
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FAB#FFFFFF#000000##FFFFFF
##5B2FAB1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#434F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2fab;
/* rgb */ color: rgb(91, 47, 171);
/* oklch */ color: oklch(43.7% 0.185 293.5);
Tailwind
colors: {
  custom: {
    50: '#916cc5',
    500: '#5b2fab',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fab;
$custom-light: #916cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fab",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 261.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43707,
    "c": 0.18476,
    "h": 293.5
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#5B2FAB
secondary
#A6C373
accent
#E048AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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