#5B52CD#5B52CD

#5B52CD is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.184 H 281.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5B52CD
RGBrgb(91, 82, 205)
HSLhsl(244, 55%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.6%, 60%, 0%, 19.6%)
CIE-LABlab(42.25, 37.87, -62.82)
CIE-LCHlch(42.25, 73.35, 301.08°)
OKLaboklab(51.78% 0.0355 -0.1803)
OKLCHoklch(51.78% 0.184 281.1)
XYZxyz(18.3477, 12.6653, 59.2236)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52CD #C4CD52
analogous
#5287CD #5B52CD #9952CD
triadic
#5B52CD #CD5B52 #52CD5B
tetradic
#5B52CD #CD5287 #C4CD52 #52CD99
square
#5B52CD #CD5287 #C4CD52 #52CD99
split-complementary
#5B52CD #CD9952 #87CD52
monochromatic
#2C2580 #3C33AF #5B52CD #8881DB #B5B1E8

Accessibility & contrast

On white

5.94
#5B52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5B52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52CD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52CD#FFFFFF#000000##FFFFFF
##5B52CD1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#226F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b52cd;
/* rgb */ color: rgb(91, 82, 205);
/* oklch */ color: oklch(51.8% 0.184 281.1);
Tailwind
colors: {
  custom: {
    50: '#9383dd',
    500: '#5b52cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b52cd;
$custom-light: #9383dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52cd",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 244.39,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.18375,
    "h": 281.1
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#5B52CD
secondary
#D3D7A4
accent
#DE49D4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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