#5B47CA#5B47CA

#5B47CA is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.7% C 0.194 H 283.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5B47CA
RGBrgb(91, 71, 202)
HSLhsl(249, 55%, 54%)
HSVhsv(249, 65%, 79%)
CMYKcmyk(55%, 64.9%, 0%, 20.8%)
CIE-LABlab(39.57, 43.42, -65.45)
CIE-LCHlch(39.57, 78.55, 303.56°)
OKLaboklab(49.75% 0.0462 -0.1881)
OKLCHoklch(49.75% 0.194 283.8)
XYZxyz(17.2250, 10.9939, 57.0800)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47CA #B6CA47
analogous
#4774CA #5B47CA #9C47CA
triadic
#5B47CA #CA5B47 #47CA5B
tetradic
#5B47CA #CA4774 #B6CA47 #47CA9C
square
#5B47CA #CA4774 #B6CA47 #47CA9C
split-complementary
#5B47CA #CA9C47 #74CA47
monochromatic
#2E2275 #412FA4 #5B47CA #8577D8 #B0A6E5

Accessibility & contrast

On white

6.56
#5B47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5B47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47CA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47CA#FFFFFF#000000##FFFFFF
##5B47CA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#286882
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b47ca;
/* rgb */ color: rgb(91, 71, 202);
/* oklch */ color: oklch(49.7% 0.194 283.8);
Tailwind
colors: {
  custom: {
    50: '#947bdb',
    500: '#5b47ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b47ca;
$custom-light: #947bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47ca",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 249.16,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49748,
    "c": 0.19366,
    "h": 283.8
  },
  "luminance": 0.10995
}

Semantic roles & 50–950 ramp

primary
#5B47CA
secondary
#CAD29A
accent
#DF49C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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