#5246C8#5246C8

#5246C8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.7% C 0.194 H 280.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5246C8
RGBrgb(82, 70, 200)
HSLhsl(246, 54%, 53%)
HSVhsv(246, 65%, 78%)
CMYKcmyk(59%, 65%, 0%, 21.6%)
CIE-LABlab(38.45, 41.90, -66.15)
CIE-LCHlch(38.45, 78.30, 302.35°)
OKLaboklab(48.7% 0.0355 -0.1904)
OKLCHoklch(48.7% 0.194 280.6)
XYZxyz(16.0919, 10.3432, 55.7808)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246C8 #BCC846
analogous
#467BC8 #5246C8 #9346C8
triadic
#5246C8 #C85246 #46C852
tetradic
#5246C8 #C8467B #BCC846 #46C893
square
#5246C8 #C8467B #BCC846 #46C893
split-complementary
#5246C8 #C89346 #7BC846
monochromatic
#292272 #3A30A1 #5246C8 #7E75D6 #AAA4E4

Accessibility & contrast

On white

6.84
#5246C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5246C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5246C8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246C8#FFFFFF#000000##FFFFFF
##5246C81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5246c8;
/* rgb */ color: rgb(82, 70, 200);
/* oklch */ color: oklch(48.7% 0.194 280.6);
Tailwind
colors: {
  custom: {
    50: '#8e7ada',
    500: '#5246c8',
    950: '#000000',
  },
}
SCSS
$custom: #5246c8;
$custom-light: #8e7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5246c8",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 245.538,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.19368,
    "h": 280.6
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#5246C8
secondary
#CCD199
accent
#DE4AD0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5246C8

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

Preview Lab → · Contrast checker → · Palette generator →

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