#5C51BD#5C51BD

#5C51BD is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.164 H 283.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5C51BD
RGBrgb(92, 81, 189)
HSLhsl(246, 45%, 53%)
HSVhsv(246, 57%, 74%)
CMYKcmyk(51.3%, 57.1%, 0%, 25.9%)
CIE-LABlab(40.95, 33.67, -55.64)
CIE-LCHlch(40.95, 65.03, 301.18°)
OKLaboklab(50.47% 0.0381 -0.1592)
OKLCHoklch(50.47% 0.164 283.5)
XYZxyz(16.5386, 11.8334, 49.5469)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C51BD #B2BD51
analogous
#517CBD #5C51BD #9251BD
triadic
#5C51BD #BD5C51 #51BD5C
tetradic
#5C51BD #BD517C #B2BD51 #51BD92
square
#5C51BD #BD517C #B2BD51 #51BD92
split-complementary
#5C51BD #BD9251 #7CBD51
monochromatic
#2F296B #433997 #5C51BD #867DCE #AFAADF

Accessibility & contrast

On white

6.24
#5C51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5C51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C51BD
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C51BD#FFFFFF#000000##FFFFFF
##5C51BD1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#366A7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5c51bd;
/* rgb */ color: rgb(92, 81, 189);
/* oklch */ color: oklch(50.5% 0.164 283.5);
Tailwind
colors: {
  custom: {
    50: '#9282d2',
    500: '#5c51bd',
    950: '#000000',
  },
}
SCSS
$custom: #5c51bd;
$custom-light: #9282d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c51bd",
  "rgb": {
    "r": 92,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 246.111,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50474,
    "c": 0.16365,
    "h": 283.5
  },
  "luminance": 0.11834
}

Semantic roles & 50–950 ramp

primary
#5C51BD
secondary
#C7CC9E
accent
#D553C7
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5C51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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