#5B3CC4#5B3CC4

#5B3CC4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.199 H 286.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC4
RGBrgb(91, 60, 196)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 69%, 77%)
CMYKcmyk(53.6%, 69.4%, 0%, 23.1%)
CIE-LABlab(36.82, 47.78, -66.46)
CIE-LCHlch(36.82, 81.85, 305.72°)
OKLaboklab(47.62% 0.057 -0.191)
OKLCHoklch(47.62% 0.199 286.6)
XYZxyz(15.8911, 9.4406, 53.1987)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC4 #A5C43C
analogous
#3C61C4 #5B3CC4 #9F3CC4
triadic
#5B3CC4 #C45B3C #3CC45B
tetradic
#5B3CC4 #C43C61 #A5C43C #3CC49F
square
#5B3CC4 #C43C61 #A5C43C #3CC49F
split-complementary
#5B3CC4 #C49F3C #61C43C
monochromatic
#2F1F67 #452D96 #5B3CC4 #836BD2 #AA9AE0

Accessibility & contrast

On white

7.27
#5B3CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B3CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CC4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CC4#FFFFFF#000000##FFFFFF
##5B3CC41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#305F7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3cc4;
/* rgb */ color: rgb(91, 60, 196);
/* oklch */ color: oklch(47.6% 0.199 286.6);
Tailwind
colors: {
  custom: {
    50: '#9374d7',
    500: '#5b3cc4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc4;
$custom-light: #9374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc4",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 253.676,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.19931,
    "h": 286.6
  },
  "luminance": 0.09441
}

Semantic roles & 50–950 ramp

primary
#5B3CC4
secondary
#BECC90
accent
#DD4BBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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