#5B3FC9#5B3FC9

#5B3FC9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.202 H 285.4°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5B3FC9
RGBrgb(91, 63, 201)
HSLhsl(252, 56%, 52%)
HSVhsv(252, 69%, 79%)
CMYKcmyk(54.7%, 68.7%, 0%, 21.2%)
CIE-LABlab(37.83, 47.62, -67.71)
CIE-LCHlch(37.83, 82.78, 305.12°)
OKLaboklab(48.47% 0.0535 -0.1947)
OKLCHoklch(48.47% 0.202 285.4)
XYZxyz(16.6313, 9.9953, 56.2999)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FC9 #ADC93F
analogous
#3F68C9 #5B3FC9 #A03FC9
triadic
#5B3FC9 #C95B3F #3FC95B
tetradic
#5B3FC9 #C93F68 #ADC93F #3FC9A0
square
#5B3FC9 #C93F68 #ADC93F #3FC9A0
split-complementary
#5B3FC9 #C9A03F #68C93F
monochromatic
#2F1F6F #442D9E #5B3FC9 #846FD6 #AD9FE4

Accessibility & contrast

On white

7.00
#5B3FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5B3FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FC9
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FC9#FFFFFF#000000##FFFFFF
##5B3FC91.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#2A637F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3fc9;
/* rgb */ color: rgb(91, 63, 201);
/* oklch */ color: oklch(48.5% 0.202 285.4);
Tailwind
colors: {
  custom: {
    50: '#9476da',
    500: '#5b3fc9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fc9;
$custom-light: #9476da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fc9",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 201
  },
  "hsl": {
    "h": 252.174,
    "s": 56.098,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48471,
    "c": 0.2019,
    "h": 285.4
  },
  "luminance": 0.09996
}

Semantic roles & 50–950 ramp

primary
#5B3FC9
secondary
#C4D094
accent
#DF48C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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