#5B3CCE#5B3CCE

#5B3CCE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.211 H 285.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B3CCE
RGBrgb(91, 60, 206)
HSLhsl(253, 60%, 52%)
HSVhsv(253, 71%, 81%)
CMYKcmyk(55.8%, 70.9%, 0%, 19.2%)
CIE-LABlab(37.68, 50.70, -70.86)
CIE-LCHlch(37.68, 87.13, 305.58°)
OKLaboklab(48.5% 0.0551 -0.2039)
OKLCHoklch(48.5% 0.211 285.1)
XYZxyz(17.0674, 9.9111, 59.3942)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CCE #AFCE3C
analogous
#3C66CE #5B3CCE #A43CCE
triadic
#5B3CCE #CE5B3C #3CCE5B
tetradic
#5B3CCE #CE3C66 #AFCE3C #3CCEA4
square
#5B3CCE #CE3C66 #AFCE3C #3CCEA4
split-complementary
#5B3CCE #CEA43C #66CE3C
monochromatic
#2F1D73 #4329A4 #5B3CCE #846DDA #AD9EE7

Accessibility & contrast

On white

7.04
#5B3CCE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B3CCE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CCE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CCE#FFFFFF#000000##FFFFFF
##5B3CCE1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#246381
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3cce;
/* rgb */ color: rgb(91, 60, 206);
/* oklch */ color: oklch(48.5% 0.211 285.1);
Tailwind
colors: {
  custom: {
    50: '#9575de',
    500: '#5b3cce',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cce;
$custom-light: #9575de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cce",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 206
  },
  "hsl": {
    "h": 252.74,
    "s": 59.836,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48496,
    "c": 0.21122,
    "h": 285.1
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#5B3CCE
secondary
#C5D393
accent
#E345C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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