#5B2ED3#5B2ED3

#5B2ED3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.231 H 286.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5B2ED3
RGBrgb(91, 46, 211)
HSLhsl(256, 65%, 50%)
HSVhsv(256, 78%, 83%)
CMYKcmyk(56.9%, 78.2%, 0%, 17.3%)
CIE-LABlab(35.75, 58.89, -76.92)
CIE-LCHlch(35.75, 96.88, 307.44°)
OKLaboklab(47.28% 0.0638 -0.2215)
OKLCHoklch(47.28% 0.231 286.1)
XYZxyz(17.0457, 8.8803, 62.4313)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2ED3 #A6D32E
analogous
#2E53D3 #5B2ED3 #AE2ED3
triadic
#5B2ED3 #D35B2E #2ED35B
tetradic
#5B2ED3 #D32E53 #A6D32E #2ED3AE
square
#5B2ED3 #D32E53 #A6D32E #2ED3AE
split-complementary
#5B2ED3 #D3AE2E #53D32E
monochromatic
#2F176F #4522A2 #5B2ED3 #8361DE #AA93E8

Accessibility & contrast

On white

7.56
#5B2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B2ED3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2ED3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2ED3#FFFFFF#000000##FFFFFF
##5B2ED31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#1E5F80
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b2ed3;
/* rgb */ color: rgb(91, 46, 211);
/* oklch */ color: oklch(47.3% 0.231 286.1);
Tailwind
colors: {
  custom: {
    50: '#976de2',
    500: '#5b2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ed3;
$custom-light: #976de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ed3",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 256.364,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47278,
    "c": 0.23056,
    "h": 286.1
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#5B2ED3
secondary
#BFD38A
accent
#E840BA
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5B2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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