#5B52C8#5B52C8

#5B52C8 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.177 H 281.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5B52C8
RGBrgb(91, 82, 200)
HSLhsl(245, 52%, 55%)
HSVhsv(245, 59%, 78%)
CMYKcmyk(54.5%, 59%, 0%, 21.6%)
CIE-LABlab(41.89, 36.30, -60.52)
CIE-LCHlch(41.89, 70.58, 300.95°)
OKLaboklab(51.39% 0.0356 -0.1735)
OKLCHoklch(51.39% 0.177 281.6)
XYZxyz(17.7538, 12.4278, 56.0957)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52C8 #BFC852
analogous
#5284C8 #5B52C8 #9652C8
triadic
#5B52C8 #C85B52 #52C85B
tetradic
#5B52C8 #C85284 #BFC852 #52C896
square
#5B52C8 #C85284 #BFC852 #52C896
split-complementary
#5B52C8 #C89652 #84C852
monochromatic
#2D2779 #3E35A8 #5B52C8 #8780D7 #B3AFE6

Accessibility & contrast

On white

6.02
#5B52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52C8
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52C8#FFFFFF#000000##FFFFFF
##5B52C81.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#286E85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b52c8;
/* rgb */ color: rgb(91, 82, 200);
/* oklch */ color: oklch(51.4% 0.177 281.6);
Tailwind
colors: {
  custom: {
    50: '#9283d9',
    500: '#5b52c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b52c8;
$custom-light: #9283d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52c8",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 244.576,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51394,
    "c": 0.17716,
    "h": 281.6
  },
  "luminance": 0.12429
}

Semantic roles & 50–950 ramp

primary
#5B52C8
secondary
#D0D4A2
accent
#DB4DD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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