#5A52BE#5A52BE

#5A52BE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.164 H 282.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A52BE
RGBrgb(90, 82, 190)
HSLhsl(244, 45%, 53%)
HSVhsv(244, 57%, 75%)
CMYKcmyk(52.6%, 56.8%, 0%, 25.5%)
CIE-LABlab(41.10, 32.96, -56.00)
CIE-LCHlch(41.10, 64.98, 300.48°)
OKLaboklab(50.56% 0.0345 -0.1602)
OKLCHoklch(50.56% 0.164 282.1)
XYZxyz(16.5252, 11.9250, 50.1362)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52BE #B6BE52
analogous
#5280BE #5A52BE #9052BE
triadic
#5A52BE #BE5A52 #52BE5A
tetradic
#5A52BE #BE5280 #B6BE52 #52BE90
square
#5A52BE #BE5280 #B6BE52 #52BE90
split-complementary
#5A52BE #BE9052 #80BE52
monochromatic
#2E296D #413A99 #5A52BE #847ECF #AFABDF

Accessibility & contrast

On white

6.20
#5A52BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A52BE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52BE#FFFFFF#000000##FFFFFF
##5A52BE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#306B80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a52be;
/* rgb */ color: rgb(90, 82, 190);
/* oklch */ color: oklch(50.6% 0.164 282.1);
Tailwind
colors: {
  custom: {
    50: '#9083d2',
    500: '#5a52be',
    950: '#000000',
  },
}
SCSS
$custom: #5a52be;
$custom-light: #9083d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52be",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 244.444,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50564,
    "c": 0.16392,
    "h": 282.1
  },
  "luminance": 0.11926
}

Semantic roles & 50–950 ramp

primary
#5A52BE
secondary
#CACD9F
accent
#D553CB
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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