#5D52CB#5D52CB

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

Color values

HEX#5D52CB
RGBrgb(93, 82, 203)
HSLhsl(245, 54%, 56%)
HSVhsv(245, 60%, 80%)
CMYKcmyk(54.2%, 59.6%, 0%, 20.4%)
CIE-LABlab(42.27, 37.61, -61.64)
CIE-LCHlch(42.27, 72.21, 301.39°)
OKLaboklab(51.78% 0.0381 -0.1768)
OKLCHoklch(51.78% 0.181 282.2)
XYZxyz(18.3077, 12.6724, 57.9697)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D52CB #C0CB52
analogous
#5283CB #5D52CB #9A52CB
triadic
#5D52CB #CB5D52 #52CB5D
tetradic
#5D52CB #CB5283 #C0CB52 #52CB9A
square
#5D52CB #CB5283 #C0CB52 #52CB9A
split-complementary
#5D52CB #CB9A52 #83CB52
monochromatic
#2E267D #3F34AC #5D52CB #8981D9 #B5B0E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D52CB#FFFFFF#000000##FFFFFF
##5D52CB1.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)
#0068CF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#2B6F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d52cb;
/* rgb */ color: rgb(93, 82, 203);
/* oklch */ color: oklch(51.8% 0.181 282.2);
Tailwind
colors: {
  custom: {
    50: '#9483dc',
    500: '#5d52cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d52cb;
$custom-light: #9483dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d52cb",
  "rgb": {
    "r": 93,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 245.455,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.18081,
    "h": 282.2
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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