#5B52CB#5B52CB

#5B52CB is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.6% C 0.181 H 281.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5B52CB
RGBrgb(91, 82, 203)
HSLhsl(244, 54%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.2%, 59.6%, 0%, 20.4%)
CIE-LABlab(42.11, 37.24, -61.90)
CIE-LCHlch(42.11, 72.24, 301.03°)
OKLaboklab(51.63% 0.0356 -0.1776)
OKLCHoklch(51.63% 0.181 281.3)
XYZxyz(18.1078, 12.5694, 57.9603)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52CB #C2CB52
analogous
#5285CB #5B52CB #9752CB
triadic
#5B52CB #CB5B52 #52CB5B
tetradic
#5B52CB #CB5285 #C2CB52 #52CB97
square
#5B52CB #CB5285 #C2CB52 #52CB97
split-complementary
#5B52CB #CB9752 #85CB52
monochromatic
#2C267D #3D34AC #5B52CB #8881D9 #B4B0E7

Accessibility & contrast

On white

5.98
#5B52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5B52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52CB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52CB#FFFFFF#000000##FFFFFF
##5B52CB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#256F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b52cb;
/* rgb */ color: rgb(91, 82, 203);
/* oklch */ color: oklch(51.6% 0.181 281.3);
Tailwind
colors: {
  custom: {
    50: '#9383dc',
    500: '#5b52cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b52cb;
$custom-light: #9383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52cb",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 244.463,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.18112,
    "h": 281.3
  },
  "luminance": 0.12571
}

Semantic roles & 50–950 ramp

primary
#5B52CB
secondary
#D2D5A3
accent
#DD4BD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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