#5247CA#5247CA

#5247CA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.0% C 0.195 H 280.2°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5247CA
RGBrgb(82, 71, 202)
HSLhsl(245, 55%, 54%)
HSVhsv(245, 65%, 79%)
CMYKcmyk(59.4%, 64.9%, 0%, 20.8%)
CIE-LABlab(38.84, 41.95, -66.68)
CIE-LCHlch(38.84, 78.78, 302.17°)
OKLaboklab(49.03% 0.0345 -0.1919)
OKLCHoklch(49.03% 0.195 280.2)
XYZxyz(16.3902, 10.5634, 57.0409)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247CA #BFCA47
analogous
#477DCA #5247CA #9347CA
triadic
#5247CA #CA5247 #47CA52
tetradic
#5247CA #CA477D #BFCA47 #47CA93
square
#5247CA #CA477D #BFCA47 #47CA93
split-complementary
#5247CA #CA9347 #7DCA47
monochromatic
#292275 #392FA4 #5247CA #7F77D8 #ABA6E5

Accessibility & contrast

On white

6.75
#5247CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5247CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247CA
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247CA#FFFFFF#000000##FFFFFF
##5247CA1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5247ca;
/* rgb */ color: rgb(82, 71, 202);
/* oklch */ color: oklch(49.0% 0.195 280.2);
Tailwind
colors: {
  custom: {
    50: '#8f7bdb',
    500: '#5247ca',
    950: '#000000',
  },
}
SCSS
$custom: #5247ca;
$custom-light: #8f7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5247ca",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 245.038,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49031,
    "c": 0.19502,
    "h": 280.2
  },
  "luminance": 0.10565
}

Semantic roles & 50–950 ramp

primary
#5247CA
secondary
#CED29A
accent
#DF49D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5247CA

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

Preview Lab → · Contrast checker → · Palette generator →

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