#5B3FDF#5B3FDF

#5B3FDF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.4% C 0.228 H 282.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5B3FDF
RGBrgb(91, 63, 223)
HSLhsl(251, 71%, 56%)
HSVhsv(251, 72%, 87%)
CMYKcmyk(59.2%, 71.7%, 0%, 12.5%)
CIE-LABlab(39.76, 54.09, -77.23)
CIE-LCHlch(39.76, 94.29, 305.01°)
OKLaboklab(50.43% 0.0494 -0.2226)
OKLCHoklch(50.43% 0.228 282.5)
XYZxyz(19.4070, 11.1056, 70.9187)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FDF #C3DF3F
analogous
#3F73DF #5B3FDF #AB3FDF
triadic
#5B3FDF #DF5B3F #3FDF5B
tetradic
#5B3FDF #DF3F73 #C3DF3F #3FDFAB
square
#5B3FDF #DF3F73 #C3DF3F #3FDFAB
split-complementary
#5B3FDF #DFAB3F #73DF3F
monochromatic
#2C178C #3C20C1 #5B3FDF #8873E8 #B5A8F0

Accessibility & contrast

On white

6.52
#5B3FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5B3FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FDF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FDF#FFFFFF#000000##FFFFFF
##5B3FDF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#006B8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b3fdf;
/* rgb */ color: rgb(91, 63, 223);
/* oklch */ color: oklch(50.4% 0.228 282.5);
Tailwind
colors: {
  custom: {
    50: '#9777ea',
    500: '#5b3fdf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fdf;
$custom-light: #9777ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fdf",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 223
  },
  "hsl": {
    "h": 250.5,
    "s": 71.429,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50431,
    "c": 0.22799,
    "h": 282.5
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#5B3FDF
secondary
#D2DE9C
accent
#EE3ACF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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