#5A52CB#5A52CB

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

Color values

HEX#5A52CB
RGBrgb(90, 82, 203)
HSLhsl(244, 54%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.7%, 59.6%, 0%, 20.4%)
CIE-LABlab(42.03, 37.06, -62.03)
CIE-LCHlch(42.03, 72.26, 300.85°)
OKLaboklab(51.55% 0.0343 -0.178)
OKLCHoklch(51.55% 0.181 280.9)
XYZxyz(18.0099, 12.5189, 57.9557)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CB #C3CB52
analogous
#5286CB #5A52CB #9652CB
triadic
#5A52CB #CB5A52 #52CB5A
tetradic
#5A52CB #CB5286 #C3CB52 #52CB96
square
#5A52CB #CB5286 #C3CB52 #52CB96
split-complementary
#5A52CB #CB9652 #86CB52
monochromatic
#2B267D #3C34AC #5A52CB #8781D9 #B4B0E7

Accessibility & contrast

On white

5.99
#5A52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5A52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52CB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CB#FFFFFF#000000##FFFFFF
##5A52CB1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#216F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a52cb;
/* rgb */ color: rgb(90, 82, 203);
/* oklch */ color: oklch(51.5% 0.181 280.9);
Tailwind
colors: {
  custom: {
    50: '#9283dc',
    500: '#5a52cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a52cb;
$custom-light: #9283dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52cb",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 243.967,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.18129,
    "h": 280.9
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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