#5B3FCE#5B3FCE

#5B3FCE is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.208 H 284.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5B3FCE
RGBrgb(91, 63, 206)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 69%, 81%)
CMYKcmyk(55.8%, 69.4%, 0%, 19.2%)
CIE-LABlab(38.26, 49.09, -69.91)
CIE-LCHlch(38.26, 85.43, 305.08°)
OKLaboklab(48.91% 0.0526 -0.2011)
OKLCHoklch(48.91% 0.208 284.7)
XYZxyz(17.2291, 10.2344, 59.4481)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FCE #B2CE3F
analogous
#3F6BCE #5B3FCE #A23FCE
triadic
#5B3FCE #CE5B3F #3FCE5B
tetradic
#5B3FCE #CE3F6B #B2CE3F #3FCEA2
square
#5B3FCE #CE3F6B #B2CE3F #3FCEA2
split-complementary
#5B3FCE #CEA23F #6BCE3F
monochromatic
#2F1E75 #422AA6 #5B3FCE #8570DA #AEA1E7

Accessibility & contrast

On white

6.89
#5B3FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B3FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FCE
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FCE#FFFFFF#000000##FFFFFF
##5B3FCE1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#236582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3fce;
/* rgb */ color: rgb(91, 63, 206);
/* oklch */ color: oklch(48.9% 0.208 284.7);
Tailwind
colors: {
  custom: {
    50: '#9576de',
    500: '#5b3fce',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fce;
$custom-light: #9576de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fce",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 206
  },
  "hsl": {
    "h": 251.748,
    "s": 59.336,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48907,
    "c": 0.20792,
    "h": 284.7
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#5B3FCE
secondary
#C7D395
accent
#E345C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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