#5B2FB9#5B2FB9

#5B2FB9 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.201 H 290.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5B2FB9
RGBrgb(91, 47, 185)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 75%, 73%)
CMYKcmyk(50.8%, 74.6%, 0%, 27.5%)
CIE-LABlab(33.48, 51.33, -65.46)
CIE-LCHlch(33.48, 83.19, 308.10°)
OKLaboklab(44.95% 0.0703 -0.188)
OKLCHoklch(44.95% 0.201 290.5)
XYZxyz(14.0853, 7.7594, 46.6451)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FB9 #8DB92F
analogous
#2F48B9 #5B2FB9 #A02FB9
triadic
#5B2FB9 #B95B2F #2FB95B
tetradic
#5B2FB9 #B92F48 #8DB92F #2FB9A0
square
#5B2FB9 #B92F48 #8DB92F #2FB9A0
split-complementary
#5B2FB9 #B9A02F #48B92F
monochromatic
#2B1657 #432388 #5B2FB9 #7B52D3 #A083DF

Accessibility & contrast

On white

8.23
#5B2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5B2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FB9
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FB9#FFFFFF#000000##FFFFFF
##5B2FB91.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#3A5572
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2fb9;
/* rgb */ color: rgb(91, 47, 185);
/* oklch */ color: oklch(44.9% 0.201 290.5);
Tailwind
colors: {
  custom: {
    50: '#936ccf',
    500: '#5b2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fb9;
$custom-light: #936ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fb9",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 259.13,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44949,
    "c": 0.20075,
    "h": 290.5
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#5B2FB9
secondary
#B0C97B
accent
#E345B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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