#5A47CD#5A47CD

#5A47CD is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.9% C 0.198 H 283.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5A47CD
RGBrgb(90, 71, 205)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 65%, 80%)
CMYKcmyk(56.1%, 65.4%, 0%, 19.6%)
CIE-LABlab(39.73, 44.17, -66.94)
CIE-LCHlch(39.73, 80.20, 303.42°)
OKLaboklab(49.92% 0.0445 -0.1925)
OKLCHoklch(49.92% 0.198 283)
XYZxyz(17.4857, 11.0868, 58.9643)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47CD #BACD47
analogous
#4777CD #5A47CD #9D47CD
triadic
#5A47CD #CD5A47 #47CD5A
tetradic
#5A47CD #CD4777 #BACD47 #47CD9D
square
#5A47CD #CD4777 #BACD47 #47CD9D
split-complementary
#5A47CD #CD9D47 #77CD47
monochromatic
#2D2179 #3F2EA9 #5A47CD #8577DA #B0A7E7

Accessibility & contrast

On white

6.53
#5A47CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5A47CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47CD
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47CD#FFFFFF#000000##FFFFFF
##5A47CD1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a47cd;
/* rgb */ color: rgb(90, 71, 205);
/* oklch */ color: oklch(49.9% 0.198 283.0);
Tailwind
colors: {
  custom: {
    50: '#937bdd',
    500: '#5a47cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a47cd;
$custom-light: #937bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47cd",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 248.507,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49915,
    "c": 0.19754,
    "h": 283
  },
  "luminance": 0.11088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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