#5A52DC#5A52DC

#5A52DC is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.9% C 0.203 H 279.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5A52DC
RGBrgb(90, 82, 220)
HSLhsl(243, 66%, 59%)
HSVhsv(243, 63%, 86%)
CMYKcmyk(59.1%, 62.7%, 0%, 13.7%)
CIE-LABlab(43.32, 42.43, -69.69)
CIE-LCHlch(43.32, 81.59, 301.34°)
OKLaboklab(52.9% 0.0334 -0.2005)
OKLCHoklch(52.9% 0.203 279.5)
XYZxyz(20.1479, 13.3741, 69.2160)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52DC #D4DC52
analogous
#528FDC #5A52DC #9F52DC
triadic
#5A52DC #DC5A52 #52DC5A
tetradic
#5A52DC #DC528F #D4DC52 #52DC9F
square
#5A52DC #DC528F #D4DC52 #52DC9F
split-complementary
#5A52DC #DC9F52 #8FDC52
monochromatic
#251E95 #3229C8 #5A52DC #8B85E6 #BBB8F1

Accessibility & contrast

On white

5.71
#5A52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5A52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52DC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52DC#FFFFFF#000000##FFFFFF
##5A52DC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a52dc;
/* rgb */ color: rgb(90, 82, 220);
/* oklch */ color: oklch(52.9% 0.203 279.5);
Tailwind
colors: {
  custom: {
    50: '#9583e8',
    500: '#5a52dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a52dc;
$custom-light: #9583e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52dc",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 243.478,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.529,
    "c": 0.20327,
    "h": 279.5
  },
  "luminance": 0.13376
}

Semantic roles & 50–950 ramp

primary
#5A52DC
secondary
#DDE0AA
accent
#E93FDF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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