#5A52FD#5A52FD

#5A52FD is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.7% C 0.244 H 277.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5A52FD
RGBrgb(90, 82, 253)
HSLhsl(243, 98%, 66%)
HSVhsv(243, 68%, 99%)
CMYKcmyk(64.4%, 67.6%, 0%, 0.8%)
CIE-LABlab(46.04, 52.77, -83.84)
CIE-LCHlch(46.04, 99.06, 302.18°)
OKLaboklab(55.71% 0.0298 -0.242)
OKLCHoklch(55.71% 0.244 277)
XYZxyz(24.9576, 15.2980, 94.5470)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52FD #F5FD52
analogous
#529FFD #5A52FD #AF52FD
triadic
#5A52FD #FD5A52 #52FD5A
tetradic
#5A52FD #FD529F #F5FD52 #52FDAF
square
#5A52FD #FD529F #F5FD52 #52FDAF
split-complementary
#5A52FD #FDAF52 #9FFD52
monochromatic
#0C02D2 #2015FC #5A52FD #948EFE #CDCBFE

Accessibility & contrast

On white

5.17
#5A52FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5A52FD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52FD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52FD#FFFFFF#000000##FFFFFF
##5A52FD1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0066FA
Tritanopia (blue-blind)
#0080A1
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a52fd;
/* rgb */ color: rgb(90, 82, 253);
/* oklch */ color: oklch(55.7% 0.244 277.0);
Tailwind
colors: {
  custom: {
    50: '#9b84ff',
    500: '#5a52fd',
    950: '#000000',
  },
}
SCSS
$custom: #5a52fd;
$custom-light: #9b84ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52fd",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 253
  },
  "hsl": {
    "h": 242.807,
    "s": 97.714,
    "l": 65.686
  },
  "oklch": {
    "l": 0.55708,
    "c": 0.24383,
    "h": 277
  },
  "luminance": 0.153
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A52FD

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

Preview Lab → · Contrast checker → · Palette generator →

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