#5E52E7#5E52E7

#5E52E7 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.1% C 0.216 H 279.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5E52E7
RGBrgb(94, 82, 231)
HSLhsl(245, 76%, 61%)
HSVhsv(245, 65%, 91%)
CMYKcmyk(59.3%, 64.5%, 0%, 9.4%)
CIE-LABlab(44.49, 46.49, -74.01)
CIE-LCHlch(44.49, 87.40, 302.14°)
OKLaboklab(54.1% 0.0374 -0.2131)
OKLCHoklch(54.1% 0.216 279.9)
XYZxyz(22.0526, 14.1822, 77.1612)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52E7 #DBE752
analogous
#5291E7 #5E52E7 #A952E7
triadic
#5E52E7 #E75E52 #52E75E
tetradic
#5E52E7 #E75291 #DBE752 #52E7A9
square
#5E52E7 #E75291 #DBE752 #52E7A9
split-complementary
#5E52E7 #E7A952 #91E752
monochromatic
#2317A7 #2E1FDD #5E52E7 #9088EE #C2BDF6

Accessibility & contrast

On white

5.47
#5E52E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5E52E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52E7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52E7#FFFFFF#000000##FFFFFF
##5E52E71.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5e52e7;
/* rgb */ color: rgb(94, 82, 231);
/* oklch */ color: oklch(54.1% 0.216 279.9);
Tailwind
colors: {
  custom: {
    50: '#9984f0',
    500: '#5e52e7',
    950: '#000000',
  },
}
SCSS
$custom: #5e52e7;
$custom-light: #9984f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52e7",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 244.832,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.541,
    "c": 0.21634,
    "h": 279.9
  },
  "luminance": 0.14184
}

Semantic roles & 50–950 ramp

primary
#5E52E7
secondary
#E2E6AF
accent
#D80EC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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