#5A52CC#5A52CC

#5A52CC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.6% C 0.183 H 280.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5A52CC
RGBrgb(90, 82, 204)
HSLhsl(244, 54%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.9%, 59.8%, 0%, 20%)
CIE-LABlab(42.10, 37.37, -62.49)
CIE-LCHlch(42.10, 72.82, 300.88°)
OKLaboklab(51.63% 0.0343 -0.1794)
OKLCHoklch(51.63% 0.183 280.8)
XYZxyz(18.1294, 12.5667, 58.5853)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CC #C4CC52
analogous
#5287CC #5A52CC #9752CC
triadic
#5A52CC #CC5A52 #52CC5A
tetradic
#5A52CC #CC5287 #C4CC52 #52CC97
square
#5A52CC #CC5287 #C4CC52 #52CC97
split-complementary
#5A52CC #CC9752 #87CC52
monochromatic
#2B257E #3B33AE #5A52CC #8781DA #B4B1E8

Accessibility & contrast

On white

5.98
#5A52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5A52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52CC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CC#FFFFFF#000000##FFFFFF
##5A52CC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#1F6F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a52cc;
/* rgb */ color: rgb(90, 82, 204);
/* oklch */ color: oklch(51.6% 0.183 280.8);
Tailwind
colors: {
  custom: {
    50: '#9383dc',
    500: '#5a52cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a52cc;
$custom-light: #9383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52cc",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 243.934,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.1826,
    "h": 280.8
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#5A52CC
secondary
#D3D6A4
accent
#DE4AD4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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