#5D51CE#5D51CE

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

Color values

HEX#5D51CE
RGBrgb(93, 81, 206)
HSLhsl(246, 56%, 56%)
HSVhsv(246, 61%, 81%)
CMYKcmyk(54.9%, 60.7%, 0%, 19.2%)
CIE-LABlab(42.26, 39.15, -63.38)
CIE-LCHlch(42.26, 74.50, 301.70°)
OKLaboklab(51.85% 0.0389 -0.1819)
OKLCHoklch(51.85% 0.186 282.1)
XYZxyz(18.5938, 12.6671, 59.8458)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51CE #C2CE51
analogous
#5184CE #5D51CE #9C51CE
triadic
#5D51CE #CE5D51 #51CE5D
tetradic
#5D51CE #CE5184 #C2CE51 #51CE9C
square
#5D51CE #CE5184 #C2CE51 #51CE9C
split-complementary
#5D51CE #CE9C51 #84CE51
monochromatic
#2D2480 #3E32B0 #5D51CE #8981DB #B6B1E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D51CE#FFFFFF#000000##FFFFFF
##5D51CE1.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)
#0068D2
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#286F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d51ce;
/* rgb */ color: rgb(93, 81, 206);
/* oklch */ color: oklch(51.8% 0.186 282.1);
Tailwind
colors: {
  custom: {
    50: '#9582de',
    500: '#5d51ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d51ce;
$custom-light: #9582de;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51ce",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 245.76,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.18602,
    "h": 282.1
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#5D51CE
secondary
#D2D7A4
accent
#DF48D1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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