#5B2EBD#5B2EBD

#5B2EBD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.206 H 289.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5B2EBD
RGBrgb(91, 46, 189)
HSLhsl(259, 61%, 46%)
HSVhsv(259, 76%, 74%)
CMYKcmyk(51.9%, 75.7%, 0%, 25.9%)
CIE-LABlab(33.67, 52.90, -67.51)
CIE-LCHlch(33.67, 85.77, 308.08°)
OKLaboklab(45.2% 0.0701 -0.194)
OKLCHoklch(45.2% 0.206 289.9)
XYZxyz(14.4740, 7.8516, 48.8871)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EBD #90BD2E
analogous
#2E48BD #5B2EBD #A22EBD
triadic
#5B2EBD #BD5B2E #2EBD5B
tetradic
#5B2EBD #BD2E48 #90BD2E #2EBDA2
square
#5B2EBD #BD2E48 #90BD2E #2EBDA2
split-complementary
#5B2EBD #BDA22E #48BD2E
monochromatic
#2C165B #43228C #5B2EBD #7C53D5 #A184E1

Accessibility & contrast

On white

8.17
#5B2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B2EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EBD
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EBD#FFFFFF#000000##FFFFFF
##5B2EBD1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#375674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2ebd;
/* rgb */ color: rgb(91, 46, 189);
/* oklch */ color: oklch(45.2% 0.206 289.9);
Tailwind
colors: {
  custom: {
    50: '#936cd2',
    500: '#5b2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ebd;
$custom-light: #936cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ebd",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 258.881,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45197,
    "c": 0.20627,
    "h": 289.9
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

primary
#5B2EBD
secondary
#B2CA7C
accent
#E444B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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