#5A47CB#5A47CB

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

Color values

HEX#5A47CB
RGBrgb(90, 71, 203)
HSLhsl(249, 56%, 54%)
HSVhsv(249, 65%, 80%)
CMYKcmyk(55.7%, 65%, 0%, 20.4%)
CIE-LABlab(39.57, 43.56, -66.04)
CIE-LCHlch(39.57, 79.12, 303.41°)
OKLaboklab(49.75% 0.0448 -0.1898)
OKLCHoklch(49.75% 0.195 283.3)
XYZxyz(17.2459, 10.9909, 57.7010)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47CB #B8CB47
analogous
#4776CB #5A47CB #9C47CB
triadic
#5A47CB #CB5A47 #47CB5A
tetradic
#5A47CB #CB4776 #B8CB47 #47CB9C
square
#5A47CB #CB4776 #B8CB47 #47CB9C
split-complementary
#5A47CB #CB9C47 #76CB47
monochromatic
#2E2176 #402FA6 #5A47CB #8577D8 #B0A6E6

Accessibility & contrast

On white

6.57
#5A47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A47CB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47CB#FFFFFF#000000##FFFFFF
##5A47CB1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#236883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a47cb;
/* rgb */ color: rgb(90, 71, 203);
/* oklch */ color: oklch(49.7% 0.195 283.3);
Tailwind
colors: {
  custom: {
    50: '#937bdc',
    500: '#5a47cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a47cb;
$custom-light: #937bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47cb",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 248.636,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49748,
    "c": 0.19504,
    "h": 283.3
  },
  "luminance": 0.10992
}

Semantic roles & 50–950 ramp

primary
#5A47CB
secondary
#CBD39B
accent
#DF49CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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