#5245C8#5245C8

#5245C8 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.5% C 0.195 H 280.8°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5245C8
RGBrgb(82, 69, 200)
HSLhsl(246, 54%, 53%)
HSVhsv(246, 66%, 78%)
CMYKcmyk(59%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.23, 42.49, -66.51)
CIE-LCHlch(38.23, 78.92, 302.57°)
OKLaboklab(48.54% 0.0364 -0.1914)
OKLCHoklch(48.54% 0.195 280.8)
XYZxyz(16.0298, 10.2191, 55.7602)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245C8 #BBC845
analogous
#457AC8 #5245C8 #9345C8
triadic
#5245C8 #C85245 #45C852
tetradic
#5245C8 #C8457A #BBC845 #45C893
square
#5245C8 #C8457A #BBC845 #45C893
split-complementary
#5245C8 #C89345 #7AC845
monochromatic
#292171 #3B2FA0 #5245C8 #7E74D6 #AAA3E4

Accessibility & contrast

On white

6.90
#5245C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5245C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245C8
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245C8#FFFFFF#000000##FFFFFF
##5245C81.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5245c8;
/* rgb */ color: rgb(82, 69, 200);
/* oklch */ color: oklch(48.5% 0.195 280.8);
Tailwind
colors: {
  custom: {
    50: '#8f7ada',
    500: '#5245c8',
    950: '#000000',
  },
}
SCSS
$custom: #5245c8;
$custom-light: #8f7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5245c8",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 245.954,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48543,
    "c": 0.19487,
    "h": 280.8
  },
  "luminance": 0.1022
}

Semantic roles & 50–950 ramp

primary
#5245C8
secondary
#CBD198
accent
#DE4ACF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5245C8

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

Preview Lab → · Contrast checker → · Palette generator →

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