#5A52E7#5A52E7

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

Color values

HEX#5A52E7
RGBrgb(90, 82, 231)
HSLhsl(243, 76%, 61%)
HSVhsv(243, 65%, 91%)
CMYKcmyk(61%, 64.5%, 0%, 9.4%)
CIE-LABlab(44.20, 45.90, -74.50)
CIE-LCHlch(44.20, 87.51, 301.63°)
OKLaboklab(53.81% 0.0324 -0.2146)
OKLCHoklch(53.81% 0.217 278.6)
XYZxyz(21.6529, 13.9761, 77.1424)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52E7 #DFE752
analogous
#5295E7 #5A52E7 #A452E7
triadic
#5A52E7 #E75A52 #52E75A
tetradic
#5A52E7 #E75295 #DFE752 #52E7A4
square
#5A52E7 #E75295 #DFE752 #52E7A4
split-complementary
#5A52E7 #E7A452 #95E752
monochromatic
#1F17A7 #291FDD #5A52E7 #8D88EE #C1BDF6

Accessibility & contrast

On white

5.53
#5A52E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A52E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52E7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52E7#FFFFFF#000000##FFFFFF
##5A52E71.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a52e7;
/* rgb */ color: rgb(90, 82, 231);
/* oklch */ color: oklch(53.8% 0.217 278.6);
Tailwind
colors: {
  custom: {
    50: '#9783f0',
    500: '#5a52e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a52e7;
$custom-light: #9783f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52e7",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 243.221,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53811,
    "c": 0.21707,
    "h": 278.6
  },
  "luminance": 0.13978
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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