#5D51E5#5D51E5

#5D51E5 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.215 H 279.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5D51E5
RGBrgb(93, 81, 229)
HSLhsl(245, 74%, 61%)
HSVhsv(245, 65%, 90%)
CMYKcmyk(59.4%, 64.6%, 0%, 10.2%)
CIE-LABlab(44.04, 46.30, -73.62)
CIE-LCHlch(44.04, 86.97, 302.16°)
OKLaboklab(53.7% 0.0371 -0.212)
OKLCHoklch(53.7% 0.215 279.9)
XYZxyz(21.5950, 13.8676, 75.6523)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51E5 #D9E551
analogous
#518FE5 #5D51E5 #A751E5
triadic
#5D51E5 #E55D51 #51E55D
tetradic
#5D51E5 #E5518F #D9E551 #51E5A7
square
#5D51E5 #E5518F #D9E551 #51E5A7
split-complementary
#5D51E5 #E5A751 #8FE551
monochromatic
#2418A3 #2F20D8 #5D51E5 #8F86ED #C0BBF5

Accessibility & contrast

On white

5.56
#5D51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5D51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51E5
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51E5#FFFFFF#000000##FFFFFF
##5D51E51.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0062E2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5d51e5;
/* rgb */ color: rgb(93, 81, 229);
/* oklch */ color: oklch(53.7% 0.215 279.9);
Tailwind
colors: {
  custom: {
    50: '#9883ee',
    500: '#5d51e5',
    950: '#000000',
  },
}
SCSS
$custom: #5d51e5;
$custom-light: #9883ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51e5",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 244.865,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53704,
    "c": 0.21519,
    "h": 279.9
  },
  "luminance": 0.13869
}

Semantic roles & 50–950 ramp

primary
#5D51E5
secondary
#E0E5AD
accent
#D60FC6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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