#5B2EEE#5B2EEE

#5B2EEE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.0% C 0.260 H 282.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5B2EEE
RGBrgb(91, 46, 238)
HSLhsl(254, 85%, 56%)
HSVhsv(254, 81%, 93%)
CMYKcmyk(61.8%, 80.7%, 0%, 6.7%)
CIE-LABlab(38.46, 66.16, -87.90)
CIE-LCHlch(38.46, 110.02, 306.97°)
OKLaboklab(49.96% 0.0555 -0.2535)
OKLCHoklch(49.96% 0.26 282.3)
XYZxyz(20.7192, 10.3497, 81.7782)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EEE #C1EE2E
analogous
#2E61EE #5B2EEE #BB2EEE
triadic
#5B2EEE #EE5B2E #2EEE5B
tetradic
#5B2EEE #EE2E61 #C1EE2E #2EEEBB
square
#5B2EEE #EE2E61 #C1EE2E #2EEEBB
split-complementary
#5B2EEE #EEBB2E #61EE2E
monochromatic
#2C0C95 #3D11CE #5B2EEE #8767F3 #B49FF7

Accessibility & contrast

On white

6.84
#5B2EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5B2EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B2EEE
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EEE#FFFFFF#000000##FFFFFF
##5B2EEE1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061F3
Deuteranopia (green-blind)
#0054EB
Tritanopia (blue-blind)
#006A90
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b2eee;
/* rgb */ color: rgb(91, 46, 238);
/* oklch */ color: oklch(50.0% 0.260 282.3);
Tailwind
colors: {
  custom: {
    50: '#9b6ff5',
    500: '#5b2eee',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eee;
$custom-light: #9b6ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eee",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 238
  },
  "hsl": {
    "h": 254.063,
    "s": 84.956,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49959,
    "c": 0.25955,
    "h": 282.3
  },
  "luminance": 0.10351
}

Semantic roles & 50–950 ramp

primary
#5B2EEE
secondary
#D1E494
accent
#FB2DCB
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5B2EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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