#5B52E7#5B52E7

#5B52E7 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.217 H 278.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5B52E7
RGBrgb(91, 82, 231)
HSLhsl(244, 76%, 61%)
HSVhsv(244, 65%, 91%)
CMYKcmyk(60.6%, 64.5%, 0%, 9.4%)
CIE-LABlab(44.27, 46.04, -74.38)
CIE-LCHlch(44.27, 87.48, 301.76°)
OKLaboklab(53.88% 0.0336 -0.2143)
OKLCHoklch(53.88% 0.217 278.9)
XYZxyz(21.7509, 14.0266, 77.1470)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52E7 #DEE752
analogous
#5294E7 #5B52E7 #A652E7
triadic
#5B52E7 #E75B52 #52E75B
tetradic
#5B52E7 #E75294 #DEE752 #52E7A6
square
#5B52E7 #E75294 #DEE752 #52E7A6
split-complementary
#5B52E7 #E7A652 #94E752
monochromatic
#2017A7 #2A1FDD #5B52E7 #8E88EE #C1BDF6

Accessibility & contrast

On white

5.52
#5B52E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5B52E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52E7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52E7#FFFFFF#000000##FFFFFF
##5B52E71.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.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: #5b52e7;
/* rgb */ color: rgb(91, 82, 231);
/* oklch */ color: oklch(53.9% 0.217 278.9);
Tailwind
colors: {
  custom: {
    50: '#9783f0',
    500: '#5b52e7',
    950: '#000000',
  },
}
SCSS
$custom: #5b52e7;
$custom-light: #9783f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52e7",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 243.624,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53882,
    "c": 0.21688,
    "h": 278.9
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#5B52E7
secondary
#E3E6AF
accent
#D80ECC
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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