#5B2EBF#5B2EBF

#5B2EBF is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.209 H 289.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5B2EBF
RGBrgb(91, 46, 191)
HSLhsl(259, 61%, 46%)
HSVhsv(259, 76%, 75%)
CMYKcmyk(52.4%, 75.9%, 0%, 25.1%)
CIE-LABlab(33.86, 53.45, -68.38)
CIE-LCHlch(33.86, 86.79, 308.01°)
OKLaboklab(45.38% 0.0696 -0.1966)
OKLCHoklch(45.38% 0.209 289.5)
XYZxyz(14.6926, 7.9391, 50.0383)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EBF #92BF2E
analogous
#2E4ABF #5B2EBF #A42EBF
triadic
#5B2EBF #BF5B2E #2EBF5B
tetradic
#5B2EBF #BF2E4A #92BF2E #2EBFA4
square
#5B2EBF #BF2E4A #92BF2E #2EBFA4
split-complementary
#5B2EBF #BFA42E #4ABF2E
monochromatic
#2C165C #44228E #5B2EBF #7D54D6 #A286E2

Accessibility & contrast

On white

8.11
#5B2EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5B2EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EBF
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EBF#FFFFFF#000000##FFFFFF
##5B2EBF1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#355675
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2ebf;
/* rgb */ color: rgb(91, 46, 191);
/* oklch */ color: oklch(45.4% 0.209 289.5);
Tailwind
colors: {
  custom: {
    50: '#946cd3',
    500: '#5b2ebf',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ebf;
$custom-light: #946cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ebf",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 258.621,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45382,
    "c": 0.20851,
    "h": 289.5
  },
  "luminance": 0.0794
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B2EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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