#5B47CD#5B47CD

#5B47CD is a mid, vivid blue. Relative luminance 0.111; OKLCH L 50.0% C 0.197 H 283.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5B47CD
RGBrgb(91, 71, 205)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 65%, 80%)
CMYKcmyk(55.6%, 65.4%, 0%, 19.6%)
CIE-LABlab(39.81, 44.34, -66.80)
CIE-LCHlch(39.81, 80.17, 303.57°)
OKLaboklab(50% 0.0459 -0.192)
OKLCHoklch(50% 0.197 283.4)
XYZxyz(17.5837, 11.1373, 58.9689)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47CD #B9CD47
analogous
#4776CD #5B47CD #9E47CD
triadic
#5B47CD #CD5B47 #47CD5B
tetradic
#5B47CD #CD4776 #B9CD47 #47CD9E
square
#5B47CD #CD4776 #B9CD47 #47CD9E
split-complementary
#5B47CD #CD9E47 #76CD47
monochromatic
#2E2179 #402EA9 #5B47CD #8677DA #B1A7E7

Accessibility & contrast

On white

6.51
#5B47CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5B47CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47CD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47CD#FFFFFF#000000##FFFFFF
##5B47CD1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#246984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b47cd;
/* rgb */ color: rgb(91, 71, 205);
/* oklch */ color: oklch(50.0% 0.197 283.4);
Tailwind
colors: {
  custom: {
    50: '#947cdd',
    500: '#5b47cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b47cd;
$custom-light: #947cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47cd",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 248.955,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49997,
    "c": 0.19742,
    "h": 283.4
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

primary
#5B47CD
secondary
#CCD49B
accent
#E147CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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