#5A52CD#5A52CD

#5A52CD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.184 H 280.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5A52CD
RGBrgb(90, 82, 205)
HSLhsl(244, 55%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(56.1%, 60%, 0%, 19.6%)
CIE-LABlab(42.18, 37.69, -62.95)
CIE-LCHlch(42.18, 73.37, 300.91°)
OKLaboklab(51.7% 0.0342 -0.1807)
OKLCHoklch(51.7% 0.184 280.7)
XYZxyz(18.2497, 12.6148, 59.2190)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CD #C5CD52
analogous
#5288CD #5A52CD #9852CD
triadic
#5A52CD #CD5A52 #52CD5A
tetradic
#5A52CD #CD5288 #C5CD52 #52CD98
square
#5A52CD #CD5288 #C5CD52 #52CD98
split-complementary
#5A52CD #CD9852 #88CD52
monochromatic
#2B2580 #3B33AF #5A52CD #8781DB #B5B1E8

Accessibility & contrast

On white

5.96
#5A52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52CD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CD#FFFFFF#000000##FFFFFF
##5A52CD1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a52cd;
/* rgb */ color: rgb(90, 82, 205);
/* oklch */ color: oklch(51.7% 0.184 280.7);
Tailwind
colors: {
  custom: {
    50: '#9383dd',
    500: '#5a52cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a52cd;
$custom-light: #9383dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52cd",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 243.902,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51703,
    "c": 0.18392,
    "h": 280.7
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#5A52CD
secondary
#D3D7A4
accent
#DE49D5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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