#5B52BC#5B52BC

#5B52BC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.5% C 0.161 H 282.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5B52BC
RGBrgb(91, 82, 188)
HSLhsl(245, 44%, 53%)
HSVhsv(245, 56%, 74%)
CMYKcmyk(51.6%, 56.4%, 0%, 26.3%)
CIE-LABlab(41.04, 32.54, -54.92)
CIE-LCHlch(41.04, 63.83, 300.64°)
OKLaboklab(50.5% 0.0357 -0.157)
OKLCHoklch(50.5% 0.161 282.8)
XYZxyz(16.4060, 11.8887, 48.9975)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52BC #B3BC52
analogous
#527EBC #5B52BC #9052BC
triadic
#5B52BC #BC5B52 #52BC5B
tetradic
#5B52BC #BC527E #B3BC52 #52BC90
square
#5B52BC #BC527E #B3BC52 #52BC90
split-complementary
#5B52BC #BC9052 #7EBC52
monochromatic
#2F296A #423A97 #5B52BC #857ECD #AFAADE

Accessibility & contrast

On white

6.22
#5B52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5B52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52BC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52BC#FFFFFF#000000##FFFFFF
##5B52BC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0664C0
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#356A7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b52bc;
/* rgb */ color: rgb(91, 82, 188);
/* oklch */ color: oklch(50.5% 0.161 282.8);
Tailwind
colors: {
  custom: {
    50: '#9183d1',
    500: '#5b52bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b52bc;
$custom-light: #9183d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52bc",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 245.094,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50497,
    "c": 0.16106,
    "h": 282.8
  },
  "luminance": 0.1189
}

Semantic roles & 50–950 ramp

primary
#5B52BC
secondary
#C8CC9E
accent
#D454C9
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5B52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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