#5B52CA#5B52CA

#5B52CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.180 H 281.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5B52CA
RGBrgb(91, 82, 202)
HSLhsl(245, 53%, 56%)
HSVhsv(245, 59%, 79%)
CMYKcmyk(55%, 59.4%, 0%, 20.8%)
CIE-LABlab(42.03, 36.93, -61.45)
CIE-LCHlch(42.03, 71.69, 301.00°)
OKLaboklab(51.55% 0.0356 -0.1762)
OKLCHoklch(51.55% 0.18 281.4)
XYZxyz(17.9890, 12.5219, 57.3347)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52CA #C1CA52
analogous
#5285CA #5B52CA #9752CA
triadic
#5B52CA #CA5B52 #52CA5B
tetradic
#5B52CA #CA5285 #C1CA52 #52CA97
square
#5B52CA #CA5285 #C1CA52 #52CA97
split-complementary
#5B52CA #CA9752 #85CA52
monochromatic
#2C267C #3D34AB #5B52CA #8781D8 #B4B0E7

Accessibility & contrast

On white

5.99
#5B52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5B52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52CA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52CA#FFFFFF#000000##FFFFFF
##5B52CA1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#266F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b52ca;
/* rgb */ color: rgb(91, 82, 202);
/* oklch */ color: oklch(51.5% 0.180 281.4);
Tailwind
colors: {
  custom: {
    50: '#9383db',
    500: '#5b52ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b52ca;
$custom-light: #9383db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52ca",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 244.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.17981,
    "h": 281.4
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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