#5A52CA#5A52CA

#5A52CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.180 H 281.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5A52CA
RGBrgb(90, 82, 202)
HSLhsl(244, 53%, 56%)
HSVhsv(244, 59%, 79%)
CMYKcmyk(55.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(41.96, 36.74, -61.58)
CIE-LCHlch(41.96, 71.70, 300.82°)
OKLaboklab(51.47% 0.0343 -0.1767)
OKLCHoklch(51.47% 0.18 281)
XYZxyz(17.8911, 12.4714, 57.3301)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CA #C2CA52
analogous
#5286CA #5A52CA #9652CA
triadic
#5A52CA #CA5A52 #52CA5A
tetradic
#5A52CA #CA5286 #C2CA52 #52CA96
square
#5A52CA #CA5286 #C2CA52 #52CA96
split-complementary
#5A52CA #CA9652 #86CA52
monochromatic
#2C267C #3C34AB #5A52CA #8781D8 #B3B0E7

Accessibility & contrast

On white

6.01
#5A52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5A52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52CA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CA#FFFFFF#000000##FFFFFF
##5A52CA1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#226F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a52ca;
/* rgb */ color: rgb(90, 82, 202);
/* oklch */ color: oklch(51.5% 0.180 281.0);
Tailwind
colors: {
  custom: {
    50: '#9283db',
    500: '#5a52ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a52ca;
$custom-light: #9283db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52ca",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 244,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.17997,
    "h": 281
  },
  "luminance": 0.12473
}

Semantic roles & 50–950 ramp

primary
#5A52CA
secondary
#D2D5A3
accent
#DD4BD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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