#5A47CA#5A47CA

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

Color values

HEX#5A47CA
RGBrgb(90, 71, 202)
HSLhsl(249, 55%, 54%)
HSVhsv(249, 65%, 79%)
CMYKcmyk(55.4%, 64.9%, 0%, 20.8%)
CIE-LABlab(39.48, 43.25, -65.60)
CIE-LCHlch(39.48, 78.57, 303.40°)
OKLaboklab(49.67% 0.0449 -0.1885)
OKLCHoklch(49.67% 0.194 283.4)
XYZxyz(17.1271, 10.9434, 57.0755)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47CA #B7CA47
analogous
#4775CA #5A47CA #9B47CA
triadic
#5A47CA #CA5A47 #47CA5A
tetradic
#5A47CA #CA4775 #B7CA47 #47CA9B
square
#5A47CA #CA4775 #B7CA47 #47CA9B
split-complementary
#5A47CA #CA9B47 #75CA47
monochromatic
#2E2275 #402FA4 #5A47CA #8577D8 #AFA6E5

Accessibility & contrast

On white

6.59
#5A47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47CA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47CA#FFFFFF#000000##FFFFFF
##5A47CA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a47ca;
/* rgb */ color: rgb(90, 71, 202);
/* oklch */ color: oklch(49.7% 0.194 283.4);
Tailwind
colors: {
  custom: {
    50: '#937bdb',
    500: '#5a47ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a47ca;
$custom-light: #937bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47ca",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 248.702,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49665,
    "c": 0.19378,
    "h": 283.4
  },
  "luminance": 0.10944
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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