#5247D9#5247D9

#5247D9 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.3% C 0.214 H 278.8°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5247D9
RGBrgb(82, 71, 217)
HSLhsl(245, 66%, 56%)
HSVhsv(245, 67%, 85%)
CMYKcmyk(62.2%, 67.3%, 0%, 14.9%)
CIE-LABlab(40.10, 46.68, -73.27)
CIE-LCHlch(40.10, 86.88, 302.50°)
OKLaboklab(50.33% 0.0327 -0.2113)
OKLCHoklch(50.33% 0.214 278.8)
XYZxyz(18.2533, 11.3086, 66.8531)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247D9 #CED947
analogous
#4785D9 #5247D9 #9B47D9
triadic
#5247D9 #D95247 #47D952
tetradic
#5247D9 #D94785 #CED947 #47D99B
square
#5247D9 #D94785 #CED947 #47D99B
split-complementary
#5247D9 #D99B47 #85D947
monochromatic
#251C89 #3227BC #5247D9 #827AE3 #B1ACEE

Accessibility & contrast

On white

6.44
#5247D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5247D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247D9
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247D9#FFFFFF#000000##FFFFFF
##5247D91.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0059D6
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5247d9;
/* rgb */ color: rgb(82, 71, 217);
/* oklch */ color: oklch(50.3% 0.214 278.8);
Tailwind
colors: {
  custom: {
    50: '#917be6',
    500: '#5247d9',
    950: '#000000',
  },
}
SCSS
$custom: #5247d9;
$custom-light: #917be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5247d9",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 244.521,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50332,
    "c": 0.21378,
    "h": 278.8
  },
  "luminance": 0.1131
}

Semantic roles & 50–950 ramp

primary
#5247D9
secondary
#D7DCA0
accent
#E93FDC
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5247D9

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

Preview Lab → · Contrast checker → · Palette generator →

#5247D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva