#5240D6#5240D6

#5240D6 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.218 H 280.1°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5240D6
RGBrgb(82, 64, 214)
HSLhsl(247, 65%, 55%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(61.7%, 70.1%, 0%, 16.1%)
CIE-LABlab(38.40, 49.67, -74.33)
CIE-LCHlch(38.40, 89.40, 303.75°)
OKLaboklab(49.04% 0.0383 -0.2143)
OKLCHoklch(49.04% 0.218 280.1)
XYZxyz(17.4468, 10.3144, 64.6768)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D6 #C4D640
analogous
#4079D6 #5240D6 #9D40D6
triadic
#5240D6 #D65240 #40D652
tetradic
#5240D6 #D64079 #C4D640 #40D69D
square
#5240D6 #D64079 #C4D640 #40D69D
split-complementary
#5240D6 #D69D40 #79D640
monochromatic
#281B80 #3726B2 #5240D6 #8072E1 #ADA5EC

Accessibility & contrast

On white

6.86
#5240D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5240D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D6
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D6#FFFFFF#000000##FFFFFF
##5240D61.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0055D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5240d6;
/* rgb */ color: rgb(82, 64, 214);
/* oklch */ color: oklch(49.0% 0.218 280.1);
Tailwind
colors: {
  custom: {
    50: '#9177e4',
    500: '#5240d6',
    950: '#000000',
  },
}
SCSS
$custom: #5240d6;
$custom-light: #9177e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d6",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 247.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49035,
    "c": 0.21774,
    "h": 280.1
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#5240D6
secondary
#D1D999
accent
#E840D4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5240D6

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

Preview Lab → · Contrast checker → · Palette generator →

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