#5247D4#5247D4

#5247D4 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.9% C 0.208 H 279.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5247D4
RGBrgb(82, 71, 212)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.3%, 66.5%, 0%, 16.9%)
CIE-LABlab(39.67, 45.11, -71.10)
CIE-LCHlch(39.67, 84.20, 302.39°)
OKLaboklab(49.89% 0.0333 -0.2049)
OKLCHoklch(49.89% 0.208 279.2)
XYZxyz(17.6128, 11.0524, 63.4798)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247D4 #C9D447
analogous
#4782D4 #5247D4 #9847D4
triadic
#5247D4 #D45247 #47D452
tetradic
#5247D4 #D44782 #C9D447 #47D498
square
#5247D4 #D44782 #C9D447 #47D498
split-complementary
#5247D4 #D49847 #82D447
monochromatic
#261E82 #352AB4 #5247D4 #8179E0 #AFAAEB

Accessibility & contrast

On white

6.54
#5247D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5247D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247D4
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247D4#FFFFFF#000000##FFFFFF
##5247D41.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5247d4;
/* rgb */ color: rgb(82, 71, 212);
/* oklch */ color: oklch(49.9% 0.208 279.2);
Tailwind
colors: {
  custom: {
    50: '#907be2',
    500: '#5247d4',
    950: '#000000',
  },
}
SCSS
$custom: #5247d4;
$custom-light: #907be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5247d4",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 212
  },
  "hsl": {
    "h": 244.681,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49893,
    "c": 0.20759,
    "h": 279.2
  },
  "luminance": 0.11054
}

Semantic roles & 50–950 ramp

primary
#5247D4
secondary
#D4D99E
accent
#E543D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5247D4

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

Preview Lab → · Contrast checker → · Palette generator →

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