#5247D5#5247D5

#5247D5 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.209 H 279.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5247D5
RGBrgb(82, 71, 213)
HSLhsl(245, 63%, 56%)
HSVhsv(245, 67%, 84%)
CMYKcmyk(61.5%, 66.7%, 0%, 16.5%)
CIE-LABlab(39.75, 45.42, -71.53)
CIE-LCHlch(39.75, 84.74, 302.41°)
OKLaboklab(49.98% 0.0332 -0.2062)
OKLCHoklch(49.98% 0.209 279.1)
XYZxyz(17.7393, 11.1031, 64.1462)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247D5 #CAD547
analogous
#4783D5 #5247D5 #9947D5
triadic
#5247D5 #D55247 #47D552
tetradic
#5247D5 #D54783 #CAD547 #47D599
square
#5247D5 #D54783 #CAD547 #47D599
split-complementary
#5247D5 #D59947 #83D547
monochromatic
#261E84 #3429B5 #5247D5 #8179E0 #B0ABEC

Accessibility & contrast

On white

6.52
#5247D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5247D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247D5
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247D5#FFFFFF#000000##FFFFFF
##5247D51.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5247d5;
/* rgb */ color: rgb(82, 71, 213);
/* oklch */ color: oklch(50.0% 0.209 279.1);
Tailwind
colors: {
  custom: {
    50: '#917be3',
    500: '#5247d5',
    950: '#000000',
  },
}
SCSS
$custom: #5247d5;
$custom-light: #917be3;
$custom-dark: #000000;
JSON
{
  "hex": "#5247d5",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 244.648,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.20884,
    "h": 279.1
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#5247D5
secondary
#D5D99E
accent
#E642D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5247D5

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

Preview Lab → · Contrast checker → · Palette generator →

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