#5A52D7#5A52D7

#5A52D7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.5% C 0.197 H 279.9°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5A52D7
RGBrgb(90, 82, 215)
HSLhsl(244, 62%, 58%)
HSVhsv(244, 62%, 84%)
CMYKcmyk(58.1%, 61.9%, 0%, 15.7%)
CIE-LABlab(42.93, 40.85, -67.46)
CIE-LCHlch(42.93, 78.87, 301.20°)
OKLaboklab(52.5% 0.0337 -0.194)
OKLCHoklch(52.5% 0.197 279.9)
XYZxyz(19.4956, 13.1132, 65.7806)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52D7 #CFD752
analogous
#528CD7 #5A52D7 #9C52D7
triadic
#5A52D7 #D75A52 #52D75A
tetradic
#5A52D7 #D7528C #CFD752 #52D79C
square
#5A52D7 #D7528C #CFD752 #52D79C
split-complementary
#5A52D7 #D79C52 #8CD752
monochromatic
#27218E #352CC0 #5A52D7 #8984E2 #B9B5EE

Accessibility & contrast

On white

5.80
#5A52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5A52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52D7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52D7#FFFFFF#000000##FFFFFF
##5A52D71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#01738D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a52d7;
/* rgb */ color: rgb(90, 82, 215);
/* oklch */ color: oklch(52.5% 0.197 279.9);
Tailwind
colors: {
  custom: {
    50: '#9483e4',
    500: '#5a52d7',
    950: '#000000',
  },
}
SCSS
$custom: #5a52d7;
$custom-light: #9483e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52d7",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 243.609,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52495,
    "c": 0.19688,
    "h": 279.9
  },
  "luminance": 0.13115
}

Semantic roles & 50–950 ramp

primary
#5A52D7
secondary
#DADDA8
accent
#E642DC
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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