#5A52FA#5A52FA

#5A52FA is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.4% C 0.240 H 277.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5A52FA
RGBrgb(90, 82, 250)
HSLhsl(243, 94%, 65%)
HSVhsv(243, 67%, 98%)
CMYKcmyk(64%, 67.2%, 0%, 2%)
CIE-LABlab(45.78, 51.84, -82.59)
CIE-LCHlch(45.78, 97.51, 302.11°)
OKLaboklab(55.44% 0.0302 -0.2383)
OKLCHoklch(55.44% 0.24 277.2)
XYZxyz(24.4835, 15.1083, 92.0499)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52FA #F2FA52
analogous
#529EFA #5A52FA #AE52FA
triadic
#5A52FA #FA5A52 #52FA5A
tetradic
#5A52FA #FA529E #F2FA52 #52FAAE
square
#5A52FA #FA529E #F2FA52 #52FAAE
split-complementary
#5A52FA #FAAE52 #9EFA52
monochromatic
#0F06CC #2117F8 #5A52FA #938DFC #CBC9FD

Accessibility & contrast

On white

5.22
#5A52FA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5A52FA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52FA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52FA#FFFFFF#000000##FFFFFF
##5A52FA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FF
Deuteranopia (green-blind)
#0065F7
Tritanopia (blue-blind)
#007FA0
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a52fa;
/* rgb */ color: rgb(90, 82, 250);
/* oklch */ color: oklch(55.4% 0.240 277.2);
Tailwind
colors: {
  custom: {
    50: '#9a84fd',
    500: '#5a52fa',
    950: '#000000',
  },
}
SCSS
$custom: #5a52fa;
$custom-light: #9a84fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52fa",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 250
  },
  "hsl": {
    "h": 242.857,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.55444,
    "c": 0.24025,
    "h": 277.2
  },
  "luminance": 0.1511
}

Semantic roles & 50–950 ramp

primary
#5A52FA
secondary
#EEF0B7
accent
#E600DB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5A52FA

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

Preview Lab → · Contrast checker → · Palette generator →

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