#5B52BE#5B52BE

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

Color values

HEX#5B52BE
RGBrgb(91, 82, 190)
HSLhsl(245, 45%, 53%)
HSVhsv(245, 57%, 75%)
CMYKcmyk(52.1%, 56.8%, 0%, 25.5%)
CIE-LABlab(41.18, 33.16, -55.86)
CIE-LCHlch(41.18, 64.97, 300.69°)
OKLaboklab(50.64% 0.0357 -0.1598)
OKLCHoklch(50.64% 0.164 282.6)
XYZxyz(16.6231, 11.9755, 50.1408)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52BE #B5BE52
analogous
#527FBE #5B52BE #9152BE
triadic
#5B52BE #BE5B52 #52BE5B
tetradic
#5B52BE #BE527F #B5BE52 #52BE91
square
#5B52BE #BE527F #B5BE52 #52BE91
split-complementary
#5B52BE #BE9152 #7FBE52
monochromatic
#2F296D #423A99 #5B52BE #857ECF #AFABDF

Accessibility & contrast

On white

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

On black

3.40
#5B52BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B52BE#FFFFFF#000000##FFFFFF
##5B52BE1.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b52be;
/* rgb */ color: rgb(91, 82, 190);
/* oklch */ color: oklch(50.6% 0.164 282.6);
Tailwind
colors: {
  custom: {
    50: '#9183d2',
    500: '#5b52be',
    950: '#000000',
  },
}
SCSS
$custom: #5b52be;
$custom-light: #9183d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52be",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 245,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50644,
    "c": 0.16378,
    "h": 282.6
  },
  "luminance": 0.11976
}

Semantic roles & 50–950 ramp

primary
#5B52BE
secondary
#C9CD9F
accent
#D553CA
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5B52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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