#5A52BF#5A52BF

#5A52BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.6% C 0.165 H 282.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5A52BF
RGBrgb(90, 82, 191)
HSLhsl(244, 46%, 54%)
HSVhsv(244, 57%, 75%)
CMYKcmyk(52.9%, 57.1%, 0%, 25.1%)
CIE-LABlab(41.17, 33.27, -56.47)
CIE-LCHlch(41.17, 65.54, 300.51°)
OKLaboklab(50.64% 0.0345 -0.1616)
OKLCHoklch(50.64% 0.165 282)
XYZxyz(16.6348, 11.9689, 50.7138)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52BF #B7BF52
analogous
#5280BF #5A52BF #9052BF
triadic
#5A52BF #BF5A52 #52BF5A
tetradic
#5A52BF #BF5280 #B7BF52 #52BF90
square
#5A52BF #BF5280 #B7BF52 #52BF90
split-complementary
#5A52BF #BF9052 #80BF52
monochromatic
#2E296E #40399B #5A52BF #857FD0 #AFABE0

Accessibility & contrast

On white

6.19
#5A52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5A52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52BF
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52BF#FFFFFF#000000##FFFFFF
##5A52BF1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#2F6B80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a52bf;
/* rgb */ color: rgb(90, 82, 191);
/* oklch */ color: oklch(50.6% 0.165 282.0);
Tailwind
colors: {
  custom: {
    50: '#9183d3',
    500: '#5a52bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a52bf;
$custom-light: #9183d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52bf",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 244.404,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50638,
    "c": 0.16528,
    "h": 282
  },
  "luminance": 0.1197
}

Semantic roles & 50–950 ramp

primary
#5A52BF
secondary
#CACE9F
accent
#D652CC
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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