#5245C3#5245C3

#5245C3 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.1% C 0.189 H 281.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5245C3
RGBrgb(82, 69, 195)
HSLhsl(246, 51%, 52%)
HSVhsv(246, 65%, 76%)
CMYKcmyk(57.9%, 64.6%, 0%, 23.5%)
CIE-LABlab(37.82, 40.91, -64.26)
CIE-LCHlch(37.82, 76.18, 302.48°)
OKLaboklab(48.12% 0.0369 -0.1848)
OKLCHoklch(48.12% 0.189 281.3)
XYZxyz(15.4550, 9.9892, 52.7329)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245C3 #B6C345
analogous
#4577C3 #5245C3 #9145C3
triadic
#5245C3 #C35245 #45C352
tetradic
#5245C3 #C34577 #B6C345 #45C391
square
#5245C3 #C34577 #B6C345 #45C391
split-complementary
#5245C3 #C39145 #77C345
monochromatic
#2A236B #3C3199 #5245C3 #7D73D2 #A8A2E1

Accessibility & contrast

On white

7.00
#5245C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5245C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245C3
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245C3#FFFFFF#000000##FFFFFF
##5245C31.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#0C657E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5245c3;
/* rgb */ color: rgb(82, 69, 195);
/* oklch */ color: oklch(48.1% 0.189 281.3);
Tailwind
colors: {
  custom: {
    50: '#8e7ad6',
    500: '#5245c3',
    950: '#000000',
  },
}
SCSS
$custom: #5245c3;
$custom-light: #8e7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#5245c3",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 246.19,
    "s": 51.22,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48119,
    "c": 0.1885,
    "h": 281.3
  },
  "luminance": 0.0999
}

Semantic roles & 50–950 ramp

primary
#5245C3
secondary
#C8CE96
accent
#DB4DCC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5245C3

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

Preview Lab → · Contrast checker → · Palette generator →

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