#5D51E9#5D51E9

#5D51E9 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.220 H 279.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5D51E9
RGBrgb(93, 81, 233)
HSLhsl(245, 78%, 62%)
HSVhsv(245, 65%, 91%)
CMYKcmyk(60.1%, 65.2%, 0%, 8.6%)
CIE-LABlab(44.37, 47.53, -75.35)
CIE-LCHlch(44.37, 89.09, 302.25°)
OKLaboklab(54.04% 0.0367 -0.217)
OKLCHoklch(54.04% 0.22 279.6)
XYZxyz(22.1599, 14.0936, 78.6276)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51E9 #DDE951
analogous
#5191E9 #5D51E9 #A951E9
triadic
#5D51E9 #E95D51 #51E95D
tetradic
#5D51E9 #E95191 #DDE951 #51E9A9
square
#5D51E9 #E95191 #DDE951 #51E9A9
split-complementary
#5D51E9 #E9A951 #91E951
monochromatic
#2116AA #2C1CE0 #5D51E9 #9087F0 #C2BEF7

Accessibility & contrast

On white

5.50
#5D51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5D51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51E9
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51E9#FFFFFF#000000##FFFFFF
##5D51E91.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEE
Deuteranopia (green-blind)
#0063E6
Tritanopia (blue-blind)
#007896
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5d51e9;
/* rgb */ color: rgb(93, 81, 233);
/* oklch */ color: oklch(54.0% 0.220 279.6);
Tailwind
colors: {
  custom: {
    50: '#9983f1',
    500: '#5d51e9',
    950: '#000000',
  },
}
SCSS
$custom: #5d51e9;
$custom-light: #9983f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51e9",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 244.737,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54039,
    "c": 0.22013,
    "h": 279.6
  },
  "luminance": 0.14095
}

Semantic roles & 50–950 ramp

primary
#5D51E9
secondary
#E3E7AF
accent
#DA0CCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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