#5B2EC0#5B2EC0

#5B2EC0 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.210 H 289.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5B2EC0
RGBrgb(91, 46, 192)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 76%, 75%)
CMYKcmyk(52.6%, 76%, 0%, 24.7%)
CIE-LABlab(33.95, 53.72, -68.82)
CIE-LCHlch(33.95, 87.30, 307.98°)
OKLaboklab(45.47% 0.0693 -0.1978)
OKLCHoklch(45.47% 0.21 289.3)
XYZxyz(14.8030, 7.9832, 50.6199)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EC0 #93C02E
analogous
#2E4AC0 #5B2EC0 #A42EC0
triadic
#5B2EC0 #C05B2E #2EC05B
tetradic
#5B2EC0 #C02E4A #93C02E #2EC0A4
square
#5B2EC0 #C02E4A #93C02E #2EC0A4
split-complementary
#5B2EC0 #C0A42E #4AC02E
monochromatic
#2C165D #44228F #5B2EC0 #7D55D6 #A386E2

Accessibility & contrast

On white

8.09
#5B2EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B2EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EC0
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EC0#FFFFFF#000000##FFFFFF
##5B2EC01.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C4
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#355776
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2ec0;
/* rgb */ color: rgb(91, 46, 192);
/* oklch */ color: oklch(45.5% 0.210 289.3);
Tailwind
colors: {
  custom: {
    50: '#946cd4',
    500: '#5b2ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ec0;
$custom-light: #946cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ec0",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 258.493,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45474,
    "c": 0.20963,
    "h": 289.3
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#5B2EC0
secondary
#B4CC7E
accent
#E443B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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