#5246E5#5246E5

#5246E5 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.3% C 0.229 H 277.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5246E5
RGBrgb(82, 70, 229)
HSLhsl(245, 75%, 59%)
HSVhsv(245, 69%, 90%)
CMYKcmyk(64.2%, 69.4%, 0%, 10.2%)
CIE-LABlab(40.94, 50.99, -78.73)
CIE-LCHlch(40.94, 93.80, 302.93°)
OKLaboklab(51.26% 0.0316 -0.2272)
OKLCHoklch(51.26% 0.229 277.9)
XYZxyz(19.8081, 11.8297, 75.3531)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246E5 #D9E546
analogous
#4689E5 #5246E5 #A146E5
triadic
#5246E5 #E55246 #46E552
tetradic
#5246E5 #E54689 #D9E546 #46E5A1
square
#5246E5 #E54689 #D9E546 #46E5A1
split-complementary
#5246E5 #E5A146 #89E546
monochromatic
#20169B #2B1DD0 #5246E5 #847CED #B6B1F4

Accessibility & contrast

On white

6.24
#5246E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5246E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5246E5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246E5#FFFFFF#000000##FFFFFF
##5246E51.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#005AE2
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5246e5;
/* rgb */ color: rgb(82, 70, 229);
/* oklch */ color: oklch(51.3% 0.229 277.9);
Tailwind
colors: {
  custom: {
    50: '#947bee',
    500: '#5246e5',
    950: '#000000',
  },
}
SCSS
$custom: #5246e5;
$custom-light: #947bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5246e5",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 244.528,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51264,
    "c": 0.22942,
    "h": 277.9
  },
  "luminance": 0.11831
}

Semantic roles & 50–950 ramp

primary
#5246E5
secondary
#DEE3A4
accent
#F236E4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #5246E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5246E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva