#5A52D2#5A52D2

#5A52D2 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.1% C 0.190 H 280.3°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5A52D2
RGBrgb(90, 82, 210)
HSLhsl(244, 59%, 57%)
HSVhsv(244, 61%, 82%)
CMYKcmyk(57.1%, 61%, 0%, 17.6%)
CIE-LABlab(42.55, 39.27, -65.22)
CIE-LCHlch(42.55, 76.13, 301.05°)
OKLaboklab(52.1% 0.034 -0.1874)
OKLCHoklch(52.1% 0.19 280.3)
XYZxyz(18.8629, 12.8601, 62.4485)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52D2 #CAD252
analogous
#528AD2 #5A52D2 #9A52D2
triadic
#5A52D2 #D25A52 #52D25A
tetradic
#5A52D2 #D2528A #CAD252 #52D29A
square
#5A52D2 #D2528A #CAD252 #52D29A
split-complementary
#5A52D2 #D29A52 #8AD252
monochromatic
#292387 #3830B7 #5A52D2 #8883DF #B7B3EB

Accessibility & contrast

On white

5.88
#5A52D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5A52D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52D2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52D2#FFFFFF#000000##FFFFFF
##5A52D21.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#13718A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a52d2;
/* rgb */ color: rgb(90, 82, 210);
/* oklch */ color: oklch(52.1% 0.190 280.3);
Tailwind
colors: {
  custom: {
    50: '#9383e1',
    500: '#5a52d2',
    950: '#000000',
  },
}
SCSS
$custom: #5a52d2;
$custom-light: #9383e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52d2",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 243.75,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52096,
    "c": 0.19043,
    "h": 280.3
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#5A52D2
secondary
#D7DAA6
accent
#E246D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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