#5239D7#5239D7

#5239D7 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 48.2% C 0.226 H 280.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5239D7
RGBrgb(82, 57, 215)
HSLhsl(249, 66%, 53%)
HSVhsv(249, 73%, 84%)
CMYKcmyk(61.9%, 73.5%, 0%, 15.7%)
CIE-LABlab(37.16, 53.70, -76.94)
CIE-LCHlch(37.16, 93.83, 304.91°)
OKLaboklab(48.18% 0.0429 -0.222)
OKLCHoklch(48.18% 0.226 280.9)
XYZxyz(17.2047, 9.6251, 65.2280)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239D7 #BED739
analogous
#396FD7 #5239D7 #A139D7
triadic
#5239D7 #D75239 #39D752
tetradic
#5239D7 #D7396F #BED739 #39D7A1
square
#5239D7 #D7396F #BED739 #39D7A1
split-complementary
#5239D7 #D7A139 #6FD739
monochromatic
#29197C #3A23AF #5239D7 #7E6CE1 #AB9FEC

Accessibility & contrast

On white

7.18
#5239D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5239D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239D7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239D7#FFFFFF#000000##FFFFFF
##5239D71.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0052D4
Tritanopia (blue-blind)
#006685
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5239d7;
/* rgb */ color: rgb(82, 57, 215);
/* oklch */ color: oklch(48.2% 0.226 280.9);
Tailwind
colors: {
  custom: {
    50: '#9273e5',
    500: '#5239d7',
    950: '#000000',
  },
}
SCSS
$custom: #5239d7;
$custom-light: #9273e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5239d7",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 215
  },
  "hsl": {
    "h": 249.494,
    "s": 66.387,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48182,
    "c": 0.22606,
    "h": 280.9
  },
  "luminance": 0.09626
}

Semantic roles & 50–950 ramp

primary
#5239D7
secondary
#CDD894
accent
#E93ECE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5239D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5239D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva