#5B3FCF#5B3FCF

#5B3FCF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.209 H 284.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5B3FCF
RGBrgb(91, 63, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 70%, 81%)
CMYKcmyk(56%, 69.6%, 0%, 18.8%)
CIE-LABlab(38.35, 49.39, -70.35)
CIE-LCHlch(38.35, 85.96, 305.07°)
OKLaboklab(49% 0.0525 -0.2024)
OKLCHoklch(49% 0.209 284.5)
XYZxyz(17.3509, 10.2831, 60.0899)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FCF #B3CF3F
analogous
#3F6BCF #5B3FCF #A33FCF
triadic
#5B3FCF #CF5B3F #3FCF5B
tetradic
#5B3FCF #CF3F6B #B3CF3F #3FCFA3
square
#5B3FCF #CF3F6B #B3CF3F #3FCFA3
split-complementary
#5B3FCF #CFA33F #6BCF3F
monochromatic
#2F1E76 #422AA7 #5B3FCF #8570DB #AFA1E7

Accessibility & contrast

On white

6.87
#5B3FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5B3FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FCF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FCF#FFFFFF#000000##FFFFFF
##5B3FCF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#226582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3fcf;
/* rgb */ color: rgb(91, 63, 207);
/* oklch */ color: oklch(49.0% 0.209 284.5);
Tailwind
colors: {
  custom: {
    50: '#9576df',
    500: '#5b3fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fcf;
$custom-light: #9576df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fcf",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 207
  },
  "hsl": {
    "h": 251.667,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48995,
    "c": 0.20912,
    "h": 284.5
  },
  "luminance": 0.10284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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