#5B2EC9#5B2EC9

#5B2EC9 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.220 H 287.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5B2EC9
RGBrgb(91, 46, 201)
HSLhsl(257, 63%, 48%)
HSVhsv(257, 77%, 79%)
CMYKcmyk(54.7%, 77.1%, 0%, 21.2%)
CIE-LABlab(34.79, 56.17, -72.70)
CIE-LCHlch(34.79, 91.87, 307.69°)
OKLaboklab(46.32% 0.0668 -0.2092)
OKLCHoklch(46.32% 0.22 287.7)
XYZxyz(15.8309, 8.3944, 56.0331)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EC9 #9CC92E
analogous
#2E4FC9 #5B2EC9 #A82EC9
triadic
#5B2EC9 #C95B2E #2EC95B
tetradic
#5B2EC9 #C92E4F #9CC92E #2EC9A8
square
#5B2EC9 #C92E4F #9CC92E #2EC9A8
split-complementary
#5B2EC9 #C9A82E #4FC92E
monochromatic
#2E1765 #442397 #5B2EC9 #805BD9 #A68DE5

Accessibility & contrast

On white

7.84
#5B2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EC9
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EC9#FFFFFF#000000##FFFFFF
##5B2EC91.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004EC6
Tritanopia (blue-blind)
#2C5B7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b2ec9;
/* rgb */ color: rgb(91, 46, 201);
/* oklch */ color: oklch(46.3% 0.220 287.7);
Tailwind
colors: {
  custom: {
    50: '#956cdb',
    500: '#5b2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ec9;
$custom-light: #956cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ec9",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 257.419,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.2196,
    "h": 287.7
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#5B2EC9
secondary
#B9CF84
accent
#E642B6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5B2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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