#5B2EC2#5B2EC2

#5B2EC2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.212 H 288.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5B2EC2
RGBrgb(91, 46, 194)
HSLhsl(258, 62%, 47%)
HSVhsv(258, 76%, 76%)
CMYKcmyk(53.1%, 76.3%, 0%, 23.9%)
CIE-LABlab(34.13, 54.27, -69.69)
CIE-LCHlch(34.13, 88.32, 307.91°)
OKLaboklab(45.66% 0.0687 -0.2004)
OKLCHoklch(45.66% 0.212 288.9)
XYZxyz(15.0261, 8.0725, 51.7949)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EC2 #95C22E
analogous
#2E4BC2 #5B2EC2 #A52EC2
triadic
#5B2EC2 #C25B2E #2EC25B
tetradic
#5B2EC2 #C22E4B #95C22E #2EC2A5
square
#5B2EC2 #C22E4B #95C22E #2EC2A5
split-complementary
#5B2EC2 #C2A52E #4BC22E
monochromatic
#2D175F #442291 #5B2EC2 #7D56D7 #A388E3

Accessibility & contrast

On white

8.03
#5B2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B2EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EC2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EC2#FFFFFF#000000##FFFFFF
##5B2EC21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#335877
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2ec2;
/* rgb */ color: rgb(91, 46, 194);
/* oklch */ color: oklch(45.7% 0.212 288.9);
Tailwind
colors: {
  custom: {
    50: '#946cd6',
    500: '#5b2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ec2;
$custom-light: #946cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ec2",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 258.243,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4566,
    "c": 0.21185,
    "h": 288.9
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#5B2EC2
secondary
#B5CC7F
accent
#E543B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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