#5A47DA#5A47DA

#5A47DA is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.214 H 281.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5A47DA
RGBrgb(90, 71, 218)
HSLhsl(248, 67%, 57%)
HSVhsv(248, 67%, 85%)
CMYKcmyk(58.7%, 67.4%, 0%, 14.5%)
CIE-LABlab(40.80, 48.14, -72.66)
CIE-LCHlch(40.80, 87.16, 303.52°)
OKLaboklab(51.02% 0.0428 -0.2093)
OKLCHoklch(51.02% 0.214 281.6)
XYZxyz(19.1206, 11.7408, 67.5747)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47DA #C7DA47
analogous
#477EDA #5A47DA #A447DA
triadic
#5A47DA #DA5A47 #47DA5A
tetradic
#5A47DA #DA477E #C7DA47 #47DAA4
square
#5A47DA #DA477E #C7DA47 #47DAA4
split-complementary
#5A47DA #DAA447 #7EDA47
monochromatic
#2A1C8B #3A26BE #5A47DA #887AE4 #B5ADEE

Accessibility & contrast

On white

6.27
#5A47DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5A47DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47DA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47DA#FFFFFF#000000##FFFFFF
##5A47DA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#005BD7
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a47da;
/* rgb */ color: rgb(90, 71, 218);
/* oklch */ color: oklch(51.0% 0.214 281.6);
Tailwind
colors: {
  custom: {
    50: '#967ce7',
    500: '#5a47da',
    950: '#000000',
  },
}
SCSS
$custom: #5a47da;
$custom-light: #967ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47da",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 218
  },
  "hsl": {
    "h": 247.755,
    "s": 66.516,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51023,
    "c": 0.2136,
    "h": 281.6
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#5A47DA
secondary
#D5DCA0
accent
#E93ED3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A47DA

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

Preview Lab → · Contrast checker → · Palette generator →

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