#5B2EFF#5B2EFF

#5B2EFF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.7% C 0.277 H 280.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5B2EFF
RGBrgb(91, 46, 255)
HSLhsl(253, 100%, 59%)
HSVhsv(253, 82%, 100%)
CMYKcmyk(64.3%, 82%, 0%, 0%)
CIE-LABlab(40.24, 70.67, -94.52)
CIE-LCHlch(40.24, 118.02, 306.79°)
OKLaboklab(51.7% 0.0501 -0.2728)
OKLCHoklch(51.7% 0.277 280.4)
XYZxyz(23.3357, 11.3963, 95.5583)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EFF #D2FF2E
analogous
#2E6AFF #5B2EFF #C42EFF
triadic
#5B2EFF #FF5B2E #2EFF5B
tetradic
#5B2EFF #FF2E6A #D2FF2E #2EFFC4
square
#5B2EFF #FF2E6A #D2FF2E #2EFFC4
split-complementary
#5B2EFF #FFC42E #6AFF2E
monochromatic
#2600B3 #3400F0 #5B2EFF #8B6BFF #BBA8FF

Accessibility & contrast

On white

6.40
#5B2EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5B2EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B2EFF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EFF#FFFFFF#000000##FFFFFF
##5B2EFF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0057FB
Tritanopia (blue-blind)
#00719A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b2eff;
/* rgb */ color: rgb(91, 46, 255);
/* oklch */ color: oklch(51.7% 0.277 280.4);
Tailwind
colors: {
  custom: {
    50: '#9e70ff',
    500: '#5b2eff',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eff;
$custom-light: #9e70ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eff",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 252.919,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51702,
    "c": 0.27738,
    "h": 280.4
  },
  "luminance": 0.11398
}

Semantic roles & 50–950 ramp

primary
#5B2EFF
secondary
#DCED9B
accent
#FF29D1
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #5B2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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