#5A52F3#5A52F3

#5A52F3 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.8% C 0.232 H 277.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A52F3
RGBrgb(90, 82, 243)
HSLhsl(243, 87%, 64%)
HSVhsv(243, 66%, 95%)
CMYKcmyk(63%, 66.3%, 0%, 4.7%)
CIE-LABlab(45.19, 49.66, -79.64)
CIE-LCHlch(45.19, 93.86, 301.94°)
OKLaboklab(54.83% 0.0311 -0.2297)
OKLCHoklch(54.83% 0.232 277.7)
XYZxyz(23.4062, 14.6774, 86.3762)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52F3 #EBF352
analogous
#529AF3 #5A52F3 #AA52F3
triadic
#5A52F3 #F35A52 #52F35A
tetradic
#5A52F3 #F3529A #EBF352 #52F3AA
square
#5A52F3 #F3529A #EBF352 #52F3AA
split-complementary
#5A52F3 #F3AA52 #9AF352
monochromatic
#160DBD #2319EF #5A52F3 #918BF7 #C7C4FB

Accessibility & contrast

On white

5.34
#5A52F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A52F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52F3
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52F3#FFFFFF#000000##FFFFFF
##5A52F31.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F8
Deuteranopia (green-blind)
#0064F0
Tritanopia (blue-blind)
#007C9C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a52f3;
/* rgb */ color: rgb(90, 82, 243);
/* oklch */ color: oklch(54.8% 0.232 277.7);
Tailwind
colors: {
  custom: {
    50: '#9984f8',
    500: '#5a52f3',
    950: '#000000',
  },
}
SCSS
$custom: #5a52f3;
$custom-light: #9984f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52f3",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 243
  },
  "hsl": {
    "h": 242.981,
    "s": 87.027,
    "l": 63.725
  },
  "oklch": {
    "l": 0.54834,
    "c": 0.23181,
    "h": 277.7
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#5A52F3
secondary
#EAEDB4
accent
#E402D8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A52F3

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

Preview Lab → · Contrast checker → · Palette generator →

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