#5D51EA#5D51EA

#5D51EA is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.1% C 0.221 H 279.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5D51EA
RGBrgb(93, 81, 234)
HSLhsl(245, 78%, 62%)
HSVhsv(245, 65%, 92%)
CMYKcmyk(60.3%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.45, 47.84, -75.78)
CIE-LCHlch(44.45, 89.62, 302.27°)
OKLaboklab(54.12% 0.0366 -0.2183)
OKLCHoklch(54.12% 0.221 279.5)
XYZxyz(22.3032, 14.1509, 79.3820)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51EA #DEEA51
analogous
#5192EA #5D51EA #AA51EA
triadic
#5D51EA #EA5D51 #51EA5D
tetradic
#5D51EA #EA5192 #DEEA51 #51EAAA
square
#5D51EA #EA5192 #DEEA51 #51EAAA
split-complementary
#5D51EA #EAAA51 #92EA51
monochromatic
#2115AC #2B1BE2 #5D51EA #9088F1 #C3BEF7

Accessibility & contrast

On white

5.48
#5D51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5D51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51EA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51EA#FFFFFF#000000##FFFFFF
##5D51EA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007897
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5d51ea;
/* rgb */ color: rgb(93, 81, 234);
/* oklch */ color: oklch(54.1% 0.221 279.5);
Tailwind
colors: {
  custom: {
    50: '#9983f2',
    500: '#5d51ea',
    950: '#000000',
  },
}
SCSS
$custom: #5d51ea;
$custom-light: #9983f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51ea",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 244.706,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54124,
    "c": 0.22136,
    "h": 279.5
  },
  "luminance": 0.14153
}

Semantic roles & 50–950 ramp

primary
#5D51EA
secondary
#E3E8AF
accent
#DB0BCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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