#5E52EC#5E52EC

#5E52EC is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.5% C 0.223 H 279.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5E52EC
RGBrgb(94, 82, 236)
HSLhsl(245, 80%, 62%)
HSVhsv(245, 65%, 93%)
CMYKcmyk(60.2%, 65.3%, 0%, 7.5%)
CIE-LABlab(44.90, 48.04, -76.17)
CIE-LCHlch(44.90, 90.06, 302.24°)
OKLaboklab(54.52% 0.0368 -0.2194)
OKLCHoklch(54.52% 0.223 279.5)
XYZxyz(22.7689, 14.4687, 80.9335)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52EC #E0EC52
analogous
#5293EC #5E52EC #AB52EC
triadic
#5E52EC #EC5E52 #52EC5E
tetradic
#5E52EC #EC5293 #E0EC52 #52ECAB
square
#5E52EC #EC5293 #E0EC52 #52ECAB
split-complementary
#5E52EC #ECAB52 #93EC52
monochromatic
#2013B0 #2B1BE6 #5E52EC #9189F2 #C5C0F8

Accessibility & contrast

On white

5.39
#5E52EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5E52EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52EC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52EC#FFFFFF#000000##FFFFFF
##5E52EC1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0064E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5e52ec;
/* rgb */ color: rgb(94, 82, 236);
/* oklch */ color: oklch(54.5% 0.223 279.5);
Tailwind
colors: {
  custom: {
    50: '#9a84f3',
    500: '#5e52ec',
    950: '#000000',
  },
}
SCSS
$custom: #5e52ec;
$custom-light: #9a84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52ec",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 244.675,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54518,
    "c": 0.2225,
    "h": 279.5
  },
  "luminance": 0.1447
}

Semantic roles & 50–950 ramp

primary
#5E52EC
secondary
#E5E9B1
accent
#DD09CC
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E52EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5E52EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva