#5242DE#5242DE

#5242DE is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.225 H 279.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5242DE
RGBrgb(82, 66, 222)
HSLhsl(246, 70%, 56%)
HSVhsv(246, 70%, 87%)
CMYKcmyk(63.1%, 70.3%, 0%, 12.9%)
CIE-LABlab(39.52, 51.03, -77.08)
CIE-LCHlch(39.52, 92.44, 303.51°)
OKLaboklab(50.05% 0.0355 -0.2224)
OKLCHoklch(50.05% 0.225 279.1)
XYZxyz(18.6085, 10.9627, 70.2285)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242DE #CEDE42
analogous
#4280DE #5242DE #A042DE
triadic
#5242DE #DE5242 #42DE52
tetradic
#5242DE #DE4280 #CEDE42 #42DEA0
square
#5242DE #DE4280 #CEDE42 #42DEA0
split-complementary
#5242DE #DEA042 #80DE42
monochromatic
#25198D #3222C1 #5242DE #8276E7 #B1AAF0

Accessibility & contrast

On white

6.58
#5242DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5242DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242DE
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242DE#FFFFFF#000000##FFFFFF
##5242DE1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E3
Deuteranopia (green-blind)
#0057DB
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5242de;
/* rgb */ color: rgb(82, 66, 222);
/* oklch */ color: oklch(50.1% 0.225 279.1);
Tailwind
colors: {
  custom: {
    50: '#9378ea',
    500: '#5242de',
    950: '#000000',
  },
}
SCSS
$custom: #5242de;
$custom-light: #9378ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5242de",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 246.154,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50052,
    "c": 0.22523,
    "h": 279.1
  },
  "luminance": 0.10964
}

Semantic roles & 50–950 ramp

primary
#5242DE
secondary
#D7DE9E
accent
#ED3BDB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5242DE

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

Preview Lab → · Contrast checker → · Palette generator →

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