#5245D6#5245D6

#5245D6 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.8% C 0.212 H 279.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5245D6
RGBrgb(82, 69, 214)
HSLhsl(245, 64%, 55%)
HSVhsv(245, 68%, 84%)
CMYKcmyk(61.7%, 67.8%, 0%, 16.1%)
CIE-LABlab(39.42, 46.88, -72.66)
CIE-LCHlch(39.42, 86.47, 302.83°)
OKLaboklab(49.76% 0.0346 -0.2095)
OKLCHoklch(49.76% 0.212 279.4)
XYZxyz(17.7415, 10.9038, 64.7750)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245D6 #C9D645
analogous
#4581D6 #5245D6 #9A45D6
triadic
#5245D6 #D65245 #45D652
tetradic
#5245D6 #D64581 #C9D645 #45D69A
square
#5245D6 #D64581 #C9D645 #45D69A
split-complementary
#5245D6 #D69A45 #81D645
monochromatic
#261D84 #3528B6 #5245D6 #8177E1 #AFA9EC

Accessibility & contrast

On white

6.60
#5245D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5245D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245D6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245D6#FFFFFF#000000##FFFFFF
##5245D61.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DA
Deuteranopia (green-blind)
#0057D3
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5245d6;
/* rgb */ color: rgb(82, 69, 214);
/* oklch */ color: oklch(49.8% 0.212 279.4);
Tailwind
colors: {
  custom: {
    50: '#917ae4',
    500: '#5245d6',
    950: '#000000',
  },
}
SCSS
$custom: #5245d6;
$custom-light: #917ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5245d6",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 245.379,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49764,
    "c": 0.21232,
    "h": 279.4
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

primary
#5245D6
secondary
#D4DA9D
accent
#E741D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5245D6

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

Preview Lab → · Contrast checker → · Palette generator →

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