#5B3CDF#5B3CDF

#5B3CDF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.231 H 282.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5B3CDF
RGBrgb(91, 60, 223)
HSLhsl(251, 72%, 55%)
HSVhsv(251, 73%, 87%)
CMYKcmyk(59.2%, 73.1%, 0%, 12.5%)
CIE-LABlab(39.21, 55.63, -78.13)
CIE-LCHlch(39.21, 95.91, 305.45°)
OKLaboklab(50.04% 0.0515 -0.2252)
OKLCHoklch(50.04% 0.231 282.9)
XYZxyz(19.2454, 10.7823, 70.8648)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CDF #C0DF3C
analogous
#3C6EDF #5B3CDF #AC3CDF
triadic
#5B3CDF #DF5B3C #3CDF5B
tetradic
#5B3CDF #DF3C6E #C0DF3C #3CDFAC
square
#5B3CDF #DF3C6E #C0DF3C #3CDFAC
split-complementary
#5B3CDF #DFAC3C #6EDF3C
monochromatic
#2D178A #3E1FBF #5B3CDF #8771E8 #B3A5F0

Accessibility & contrast

On white

6.65
#5B3CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5B3CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3CDF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CDF#FFFFFF#000000##FFFFFF
##5B3CDF1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E4
Deuteranopia (green-blind)
#0057DC
Tritanopia (blue-blind)
#006A8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b3cdf;
/* rgb */ color: rgb(91, 60, 223);
/* oklch */ color: oklch(50.0% 0.231 282.9);
Tailwind
colors: {
  custom: {
    50: '#9875ea',
    500: '#5b3cdf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cdf;
$custom-light: #9875ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cdf",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 223
  },
  "hsl": {
    "h": 251.411,
    "s": 71.806,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50045,
    "c": 0.231,
    "h": 282.9
  },
  "luminance": 0.10784
}

Semantic roles & 50–950 ramp

primary
#5B3CDF
secondary
#D0DD99
accent
#EF39CC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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