#5B52D2#5B52D2

#5B52D2 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.2% C 0.190 H 280.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5B52D2
RGBrgb(91, 82, 210)
HSLhsl(244, 59%, 57%)
HSVhsv(244, 61%, 82%)
CMYKcmyk(56.7%, 61%, 0%, 17.6%)
CIE-LABlab(42.63, 39.45, -65.09)
CIE-LCHlch(42.63, 76.11, 301.22°)
OKLaboklab(52.17% 0.0352 -0.187)
OKLCHoklch(52.17% 0.19 280.7)
XYZxyz(18.9609, 12.9106, 62.4531)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52D2 #C9D252
analogous
#5289D2 #5B52D2 #9B52D2
triadic
#5B52D2 #D25B52 #52D25B
tetradic
#5B52D2 #D25289 #C9D252 #52D29B
square
#5B52D2 #D25289 #C9D252 #52D29B
split-complementary
#5B52D2 #D29B52 #89D252
monochromatic
#2A2387 #3930B7 #5B52D2 #8983DF #B7B3EB

Accessibility & contrast

On white

5.86
#5B52D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5B52D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52D2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52D2#FFFFFF#000000##FFFFFF
##5B52D21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#19718A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b52d2;
/* rgb */ color: rgb(91, 82, 210);
/* oklch */ color: oklch(52.2% 0.190 280.7);
Tailwind
colors: {
  custom: {
    50: '#9483e1',
    500: '#5b52d2',
    950: '#000000',
  },
}
SCSS
$custom: #5b52d2;
$custom-light: #9483e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52d2",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 244.219,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52171,
    "c": 0.19026,
    "h": 280.7
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#5B52D2
secondary
#D6DAA6
accent
#E246D7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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