#5A52CE#5A52CE

#5A52CE is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.185 H 280.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5A52CE
RGBrgb(90, 82, 206)
HSLhsl(244, 56%, 56%)
HSVhsv(244, 60%, 81%)
CMYKcmyk(56.3%, 60.2%, 0%, 19.2%)
CIE-LABlab(42.25, 38.01, -63.40)
CIE-LCHlch(42.25, 73.92, 300.94°)
OKLaboklab(51.78% 0.0342 -0.182)
OKLCHoklch(51.78% 0.185 280.6)
XYZxyz(18.3708, 12.6633, 59.8568)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CE #C6CE52
analogous
#5288CE #5A52CE #9852CE
triadic
#5A52CE #CE5A52 #52CE5A
tetradic
#5A52CE #CE5288 #C6CE52 #52CE98
square
#5A52CE #CE5288 #C6CE52 #52CE98
split-complementary
#5A52CE #CE9852 #88CE52
monochromatic
#2B2581 #3A32B1 #5A52CE #8782DC #B5B1E9

Accessibility & contrast

On white

5.94
#5A52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5A52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52CE
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CE#FFFFFF#000000##FFFFFF
##5A52CE1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#1C7088
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a52ce;
/* rgb */ color: rgb(90, 82, 206);
/* oklch */ color: oklch(51.8% 0.185 280.6);
Tailwind
colors: {
  custom: {
    50: '#9383de',
    500: '#5a52ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a52ce;
$custom-light: #9383de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52ce",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 243.871,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.18522,
    "h": 280.6
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#5A52CE
secondary
#D4D7A4
accent
#DF49D5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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