#5D51E7#5D51E7

#5D51E7 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.218 H 279.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5D51E7
RGBrgb(93, 81, 231)
HSLhsl(245, 76%, 61%)
HSVhsv(245, 65%, 91%)
CMYKcmyk(59.7%, 64.9%, 0%, 9.4%)
CIE-LABlab(44.20, 46.92, -74.49)
CIE-LCHlch(44.20, 88.03, 302.21°)
OKLaboklab(53.87% 0.0369 -0.2145)
OKLCHoklch(53.87% 0.218 279.8)
XYZxyz(21.8759, 13.9799, 77.1314)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51E7 #DBE751
analogous
#5190E7 #5D51E7 #A851E7
triadic
#5D51E7 #E75D51 #51E75D
tetradic
#5D51E7 #E75190 #DBE751 #51E7A8
square
#5D51E7 #E75190 #DBE751 #51E7A8
split-complementary
#5D51E7 #E7A851 #90E751
monochromatic
#2217A7 #2E1EDC #5D51E7 #8F87EE #C1BDF6

Accessibility & contrast

On white

5.53
#5D51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5D51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51E7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51E7#FFFFFF#000000##FFFFFF
##5D51E71.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5d51e7;
/* rgb */ color: rgb(93, 81, 231);
/* oklch */ color: oklch(53.9% 0.218 279.8);
Tailwind
colors: {
  custom: {
    50: '#9983f0',
    500: '#5d51e7',
    950: '#000000',
  },
}
SCSS
$custom: #5d51e7;
$custom-light: #9983f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51e7",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 244.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53871,
    "c": 0.21766,
    "h": 279.8
  },
  "luminance": 0.13982
}

Semantic roles & 50–950 ramp

primary
#5D51E7
secondary
#E2E6AE
accent
#D80EC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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