#5242D5#5242D5

#5242D5 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.2% C 0.214 H 279.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5242D5
RGBrgb(82, 66, 213)
HSLhsl(247, 64%, 55%)
HSVhsv(247, 69%, 84%)
CMYKcmyk(61.5%, 69%, 0%, 16.5%)
CIE-LABlab(38.71, 48.26, -73.24)
CIE-LCHlch(38.71, 87.71, 303.38°)
OKLaboklab(49.23% 0.037 -0.2112)
OKLCHoklch(49.23% 0.214 279.9)
XYZxyz(17.4343, 10.4931, 64.0445)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242D5 #C5D542
analogous
#427BD5 #5242D5 #9C42D5
triadic
#5242D5 #D55242 #42D552
tetradic
#5242D5 #D5427B #C5D542 #42D59C
square
#5242D5 #D5427B #C5D542 #42D59C
split-complementary
#5242D5 #D59C42 #7BD542
monochromatic
#271C80 #3728B2 #5242D5 #8074E0 #AEA6EB

Accessibility & contrast

On white

6.78
#5242D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5242D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242D5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242D5#FFFFFF#000000##FFFFFF
##5242D51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D9
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5242d5;
/* rgb */ color: rgb(82, 66, 213);
/* oklch */ color: oklch(49.2% 0.214 279.9);
Tailwind
colors: {
  custom: {
    50: '#9178e3',
    500: '#5242d5',
    950: '#000000',
  },
}
SCSS
$custom: #5242d5;
$custom-light: #9178e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5242d5",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 246.531,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49231,
    "c": 0.21439,
    "h": 279.9
  },
  "luminance": 0.10494
}

Semantic roles & 50–950 ramp

primary
#5242D5
secondary
#D2D89A
accent
#E741D5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5242D5

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

Preview Lab → · Contrast checker → · Palette generator →

#5242D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva