#5B3FC8#5B3FC8

#5B3FC8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.201 H 285.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5B3FC8
RGBrgb(91, 63, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 69%, 78%)
CMYKcmyk(54.5%, 68.5%, 0%, 21.6%)
CIE-LABlab(37.75, 47.32, -67.27)
CIE-LCHlch(37.75, 82.24, 305.13°)
OKLaboklab(48.39% 0.0537 -0.1934)
OKLCHoklch(48.39% 0.201 285.5)
XYZxyz(16.5141, 9.9484, 55.6824)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FC8 #ACC83F
analogous
#3F68C8 #5B3FC8 #A03FC8
triadic
#5B3FC8 #C85B3F #3FC85B
tetradic
#5B3FC8 #C83F68 #ACC83F #3FC8A0
square
#5B3FC8 #C83F68 #ACC83F #3FC8A0
split-complementary
#5B3FC8 #C8A03F #68C83F
monochromatic
#2F1F6D #442D9D #5B3FC8 #846FD6 #AC9EE3

Accessibility & contrast

On white

7.02
#5B3FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B3FC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FC8
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FC8#FFFFFF#000000##FFFFFF
##5B3FC81.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#2B627E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3fc8;
/* rgb */ color: rgb(91, 63, 200);
/* oklch */ color: oklch(48.4% 0.201 285.5);
Tailwind
colors: {
  custom: {
    50: '#9476da',
    500: '#5b3fc8',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fc8;
$custom-light: #9476da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fc8",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 200
  },
  "hsl": {
    "h": 252.263,
    "s": 55.466,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48385,
    "c": 0.20068,
    "h": 285.5
  },
  "luminance": 0.09949
}

Semantic roles & 50–950 ramp

primary
#5B3FC8
secondary
#C3D093
accent
#DF49C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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