#5246C2#5246C2

#5246C2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.2% C 0.186 H 281.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5246C2
RGBrgb(82, 70, 194)
HSLhsl(246, 50%, 52%)
HSVhsv(246, 64%, 76%)
CMYKcmyk(57.7%, 63.9%, 0%, 23.9%)
CIE-LABlab(37.96, 40.00, -63.45)
CIE-LCHlch(37.96, 75.01, 302.23°)
OKLaboklab(48.2% 0.0361 -0.1825)
OKLCHoklch(48.2% 0.186 281.2)
XYZxyz(15.4044, 10.0682, 52.1601)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246C2 #B6C246
analogous
#4678C2 #5246C2 #9046C2
triadic
#5246C2 #C25246 #46C252
tetradic
#5246C2 #C24678 #B6C246 #46C290
square
#5246C2 #C24678 #B6C246 #46C290
split-complementary
#5246C2 #C29046 #78C246
monochromatic
#2A236A #3C3299 #5246C2 #7D74D1 #A8A2E0

Accessibility & contrast

On white

6.97
#5246C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5246C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5246C2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246C2#FFFFFF#000000##FFFFFF
##5246C21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#0F657D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5246c2;
/* rgb */ color: rgb(82, 70, 194);
/* oklch */ color: oklch(48.2% 0.186 281.2);
Tailwind
colors: {
  custom: {
    50: '#8d7ad5',
    500: '#5246c2',
    950: '#000000',
  },
}
SCSS
$custom: #5246c2;
$custom-light: #8d7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5246c2",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 245.806,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48197,
    "c": 0.186,
    "h": 281.2
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#5246C2
secondary
#C8CD97
accent
#DA4ECC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5246C2

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

Preview Lab → · Contrast checker → · Palette generator →

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