#5B2FAE#5B2FAE

#5B2FAE is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.188 H 292.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5B2FAE
RGBrgb(91, 47, 174)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 73%, 68%)
CMYKcmyk(47.7%, 73%, 0%, 31.8%)
CIE-LABlab(32.51, 48.32, -60.51)
CIE-LCHlch(32.51, 77.44, 308.61°)
OKLaboklab(43.97% 0.0729 -0.1735)
OKLCHoklch(43.97% 0.188 292.8)
XYZxyz(12.9688, 7.3127, 40.7644)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FAE #82AE2F
analogous
#2F43AE #5B2FAE #9A2FAE
triadic
#5B2FAE #AE5B2F #2FAE5B
tetradic
#5B2FAE #AE2F43 #82AE2F #2FAE9A
square
#5B2FAE #AE2F43 #82AE2F #2FAE9A
split-complementary
#5B2FAE #AE9A2F #43AE2F
monochromatic
#29154E #42227E #5B2FAE #794CCF #9D7CDC

Accessibility & contrast

On white

8.53
#5B2FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B2FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FAE
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FAE#FFFFFF#000000##FFFFFF
##5B2FAE1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#41506C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2fae;
/* rgb */ color: rgb(91, 47, 174);
/* oklch */ color: oklch(44.0% 0.188 292.8);
Tailwind
colors: {
  custom: {
    50: '#916cc7',
    500: '#5b2fae',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fae;
$custom-light: #916cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fae",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 260.787,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43968,
    "c": 0.18821,
    "h": 292.8
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#5B2FAE
secondary
#A9C475
accent
#E147AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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