#5245D9#5245D9

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

Color values

HEX#5245D9
RGBrgb(82, 69, 217)
HSLhsl(245, 66%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62.2%, 68.2%, 0%, 14.9%)
CIE-LABlab(39.68, 47.82, -73.95)
CIE-LCHlch(39.68, 88.07, 302.89°)
OKLaboklab(50.03% 0.0342 -0.2133)
OKLCHoklch(50.03% 0.216 279.1)
XYZxyz(18.1282, 11.0584, 66.8114)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245D9 #CCD945
analogous
#4582D9 #5245D9 #9C45D9
triadic
#5245D9 #D95245 #45D952
tetradic
#5245D9 #D94582 #CCD945 #45D99C
square
#5245D9 #D94582 #CCD945 #45D99C
split-complementary
#5245D9 #D99C45 #82D945
monochromatic
#251C88 #3326BB #5245D9 #8178E3 #B1ABEE

Accessibility & contrast

On white

6.54
#5245D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5245D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245D9
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245D9#FFFFFF#000000##FFFFFF
##5245D91.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)
#0063DE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5245d9;
/* rgb */ color: rgb(82, 69, 217);
/* oklch */ color: oklch(50.0% 0.216 279.1);
Tailwind
colors: {
  custom: {
    50: '#927ae6',
    500: '#5245d9',
    950: '#000000',
  },
}
SCSS
$custom: #5245d9;
$custom-light: #927ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5245d9",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 245.27,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50032,
    "c": 0.21599,
    "h": 279.1
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#5245D9
secondary
#D6DB9E
accent
#E93FDA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5245D9

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

Preview Lab → · Contrast checker → · Palette generator →

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