#5B3FD8#5B3FD8

#5B3FD8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.220 H 283.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5B3FD8
RGBrgb(91, 63, 216)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(57.9%, 70.8%, 0%, 15.3%)
CIE-LABlab(39.13, 52.04, -74.25)
CIE-LCHlch(39.13, 90.67, 305.02°)
OKLaboklab(49.8% 0.0508 -0.2139)
OKLCHoklch(49.8% 0.22 283.4)
XYZxyz(18.4827, 10.7358, 66.0507)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD8 #BCD83F
analogous
#3F70D8 #5B3FD8 #A73FD8
triadic
#5B3FD8 #D85B3F #3FD85B
tetradic
#5B3FD8 #D83F70 #BCD83F #3FD8A7
square
#5B3FD8 #D83F70 #BCD83F #3FD8A7
split-complementary
#5B3FD8 #D8A73F #70D83F
monochromatic
#2D1A82 #3F25B5 #5B3FD8 #8672E2 #B2A5ED

Accessibility & contrast

On white

6.67
#5B3FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5B3FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD8
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD8#FFFFFF#000000##FFFFFF
##5B3FD81.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#0F6887
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b3fd8;
/* rgb */ color: rgb(91, 63, 216);
/* oklch */ color: oklch(49.8% 0.220 283.4);
Tailwind
colors: {
  custom: {
    50: '#9677e5',
    500: '#5b3fd8',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd8;
$custom-light: #9677e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd8",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 250.98,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49796,
    "c": 0.21981,
    "h": 283.4
  },
  "luminance": 0.10737
}

Semantic roles & 50–950 ramp

primary
#5B3FD8
secondary
#CEDA99
accent
#E93FCA
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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