#5B52E4#5B52E4

#5B52E4 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.6% C 0.213 H 279.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5B52E4
RGBrgb(91, 82, 228)
HSLhsl(244, 73%, 61%)
HSVhsv(244, 64%, 89%)
CMYKcmyk(60.1%, 64%, 0%, 10.6%)
CIE-LABlab(44.03, 45.10, -73.08)
CIE-LCHlch(44.03, 85.88, 301.68°)
OKLaboklab(53.63% 0.0339 -0.2104)
OKLCHoklch(53.63% 0.213 279.2)
XYZxyz(21.3308, 13.8586, 74.9347)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52E4 #DBE452
analogous
#5292E4 #5B52E4 #A452E4
triadic
#5B52E4 #E45B52 #52E45B
tetradic
#5B52E4 #E45292 #DBE452 #52E4A4
square
#5B52E4 #E45292 #DBE452 #52E4A4
split-complementary
#5B52E4 #E4A452 #92E452
monochromatic
#2219A2 #2D22D7 #5B52E4 #8D87EC #BFBCF5

Accessibility & contrast

On white

5.57
#5B52E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5B52E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52E4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52E4#FFFFFF#000000##FFFFFF
##5B52E41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#0062E1
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b52e4;
/* rgb */ color: rgb(91, 82, 228);
/* oklch */ color: oklch(53.6% 0.213 279.2);
Tailwind
colors: {
  custom: {
    50: '#9783ee',
    500: '#5b52e4',
    950: '#000000',
  },
}
SCSS
$custom: #5b52e4;
$custom-light: #9783ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52e4",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 243.699,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53632,
    "c": 0.21315,
    "h": 279.2
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#5B52E4
secondary
#E1E5AD
accent
#D510C9
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5B52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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