#5B47BC#5B47BC

#5B47BC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.6% C 0.176 H 285.7°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5B47BC
RGBrgb(91, 71, 188)
HSLhsl(250, 47%, 51%)
HSVhsv(250, 62%, 74%)
CMYKcmyk(51.6%, 62.2%, 0%, 26.3%)
CIE-LABlab(38.48, 39.17, -59.06)
CIE-LCHlch(38.48, 70.87, 303.55°)
OKLaboklab(48.62% 0.0475 -0.1693)
OKLCHoklch(48.62% 0.176 285.7)
XYZxyz(15.6420, 10.3607, 48.7428)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47BC #A8BC47
analogous
#476DBC #5B47BC #9547BC
triadic
#5B47BC #BC5B47 #47BC5B
tetradic
#5B47BC #BC476D #A8BC47 #47BC95
square
#5B47BC #BC476D #A8BC47 #47BC95
split-complementary
#5B47BC #BC9547 #6DBC47
monochromatic
#2F2464 #453591 #5B47BC #8374CC #ABA1DD

Accessibility & contrast

On white

6.84
#5B47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5B47BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47BC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47BC#FFFFFF#000000##FFFFFF
##5B47BC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#36637B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b47bc;
/* rgb */ color: rgb(91, 71, 188);
/* oklch */ color: oklch(48.6% 0.176 285.7);
Tailwind
colors: {
  custom: {
    50: '#917bd1',
    500: '#5b47bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b47bc;
$custom-light: #917bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47bc",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 250.256,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.1758,
    "h": 285.7
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#5B47BC
secondary
#C0C995
accent
#D652C0
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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