#5B52CC#5B52CC

#5B52CC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.182 H 281.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5B52CC
RGBrgb(91, 82, 204)
HSLhsl(244, 54%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.4%, 59.8%, 0%, 20%)
CIE-LABlab(42.18, 37.56, -62.36)
CIE-LCHlch(42.18, 72.80, 301.06°)
OKLaboklab(51.7% 0.0355 -0.1789)
OKLCHoklch(51.7% 0.182 281.2)
XYZxyz(18.2274, 12.6172, 58.5899)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52CC #C3CC52
analogous
#5286CC #5B52CC #9852CC
triadic
#5B52CC #CC5B52 #52CC5B
tetradic
#5B52CC #CC5286 #C3CC52 #52CC98
square
#5B52CC #CC5286 #C3CC52 #52CC98
split-complementary
#5B52CC #CC9852 #86CC52
monochromatic
#2C257E #3C33AE #5B52CC #8881DA #B5B1E8

Accessibility & contrast

On white

5.96
#5B52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5B52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52CC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52CC#FFFFFF#000000##FFFFFF
##5B52CC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#236F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b52cc;
/* rgb */ color: rgb(91, 82, 204);
/* oklch */ color: oklch(51.7% 0.182 281.2);
Tailwind
colors: {
  custom: {
    50: '#9383dc',
    500: '#5b52cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b52cc;
$custom-light: #9383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52cc",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 244.426,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51702,
    "c": 0.18244,
    "h": 281.2
  },
  "luminance": 0.12618
}

Semantic roles & 50–950 ramp

primary
#5B52CC
secondary
#D2D6A4
accent
#DE4AD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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