#5B3FCC#5B3FCC

#5B3FCC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.206 H 284.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5B3FCC
RGBrgb(91, 63, 204)
HSLhsl(252, 58%, 52%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(55.4%, 69.1%, 0%, 20%)
CIE-LABlab(38.09, 48.50, -69.03)
CIE-LCHlch(38.09, 84.37, 305.09°)
OKLaboklab(48.73% 0.053 -0.1986)
OKLCHoklch(48.73% 0.206 284.9)
XYZxyz(16.9877, 10.1378, 58.1767)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FCC #B0CC3F
analogous
#3F69CC #5B3FCC #A23FCC
triadic
#5B3FCC #CC5B3F #3FCC5B
tetradic
#5B3FCC #CC3F69 #B0CC3F #3FCCA2
square
#5B3FCC #CC3F69 #B0CC3F #3FCCA2
split-complementary
#5B3FCC #CCA23F #69CC3F
monochromatic
#2F1E72 #432BA3 #5B3FCC #846FD9 #AEA0E6

Accessibility & contrast

On white

6.94
#5B3FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5B3FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FCC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FCC#FFFFFF#000000##FFFFFF
##5B3FCC1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#266481
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3fcc;
/* rgb */ color: rgb(91, 63, 204);
/* oklch */ color: oklch(48.7% 0.206 284.9);
Tailwind
colors: {
  custom: {
    50: '#9476dd',
    500: '#5b3fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fcc;
$custom-light: #9476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fcc",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 204
  },
  "hsl": {
    "h": 251.915,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48732,
    "c": 0.20552,
    "h": 284.9
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#5B3FCC
secondary
#C6D295
accent
#E147C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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