#5B52F3#5B52F3

#5B52F3 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.9% C 0.232 H 278.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5B52F3
RGBrgb(91, 82, 243)
HSLhsl(243, 87%, 64%)
HSVhsv(243, 66%, 95%)
CMYKcmyk(62.6%, 66.3%, 0%, 4.7%)
CIE-LABlab(45.26, 49.79, -79.53)
CIE-LCHlch(45.26, 93.83, 302.05°)
OKLaboklab(54.9% 0.0323 -0.2293)
OKLCHoklch(54.9% 0.232 278)
XYZxyz(23.5041, 14.7279, 86.3808)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52F3 #EAF352
analogous
#5299F3 #5B52F3 #AB52F3
triadic
#5B52F3 #F35B52 #52F35B
tetradic
#5B52F3 #F35299 #EAF352 #52F3AB
square
#5B52F3 #F35299 #EAF352 #52F3AB
split-complementary
#5B52F3 #F3AB52 #99F352
monochromatic
#170DBD #2519EF #5B52F3 #918BF7 #C8C4FB

Accessibility & contrast

On white

5.32
#5B52F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5B52F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52F3
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52F3#FFFFFF#000000##FFFFFF
##5B52F31.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F8
Deuteranopia (green-blind)
#0064F0
Tritanopia (blue-blind)
#007C9C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b52f3;
/* rgb */ color: rgb(91, 82, 243);
/* oklch */ color: oklch(54.9% 0.232 278.0);
Tailwind
colors: {
  custom: {
    50: '#9984f8',
    500: '#5b52f3',
    950: '#000000',
  },
}
SCSS
$custom: #5b52f3;
$custom-light: #9984f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52f3",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 243
  },
  "hsl": {
    "h": 243.354,
    "s": 87.027,
    "l": 63.725
  },
  "oklch": {
    "l": 0.54903,
    "c": 0.23161,
    "h": 278
  },
  "luminance": 0.1473
}

Semantic roles & 50–950 ramp

primary
#5B52F3
secondary
#EAEDB4
accent
#E402D7
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B52F3

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

Preview Lab → · Contrast checker → · Palette generator →

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