#5A47DB#5A47DB

#5A47DB is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.1% C 0.215 H 281.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5A47DB
RGBrgb(90, 71, 219)
HSLhsl(248, 67%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(58.9%, 67.6%, 0%, 14.1%)
CIE-LABlab(40.89, 48.44, -73.10)
CIE-LCHlch(40.89, 87.69, 303.53°)
OKLaboklab(51.11% 0.0427 -0.2105)
OKLCHoklch(51.11% 0.215 281.5)
XYZxyz(19.2519, 11.7933, 68.2659)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47DB #C8DB47
analogous
#477EDB #5A47DB #A447DB
triadic
#5A47DB #DB5A47 #47DB5A
tetradic
#5A47DB #DB477E #C8DB47 #47DBA4
square
#5A47DB #DB477E #C8DB47 #47DBA4
split-complementary
#5A47DB #DBA447 #7EDB47
monochromatic
#2A1B8C #3925BF #5A47DB #887AE5 #B6ADEF

Accessibility & contrast

On white

6.25
#5A47DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5A47DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47DB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47DB#FFFFFF#000000##FFFFFF
##5A47DB1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#006E8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a47db;
/* rgb */ color: rgb(90, 71, 219);
/* oklch */ color: oklch(51.1% 0.215 281.5);
Tailwind
colors: {
  custom: {
    50: '#967ce7',
    500: '#5a47db',
    950: '#000000',
  },
}
SCSS
$custom: #5a47db;
$custom-light: #967ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47db",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 247.703,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51109,
    "c": 0.21481,
    "h": 281.5
  },
  "luminance": 0.11795
}

Semantic roles & 50–950 ramp

primary
#5A47DB
secondary
#D5DDA1
accent
#EA3ED4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A47DB

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

Preview Lab → · Contrast checker → · Palette generator →

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