#5D51ED#5D51ED

#5D51ED is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.4% C 0.225 H 279.3°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5D51ED
RGBrgb(93, 81, 237)
HSLhsl(245, 81%, 62%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(60.8%, 65.8%, 0%, 7.1%)
CIE-LABlab(44.70, 48.77, -77.07)
CIE-LCHlch(44.70, 91.21, 302.33°)
OKLaboklab(54.38% 0.0363 -0.2221)
OKLCHoklch(54.38% 0.225 279.3)
XYZxyz(22.7378, 14.3247, 81.6711)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51ED #E1ED51
analogous
#5193ED #5D51ED #AB51ED
triadic
#5D51ED #ED5D51 #51ED5D
tetradic
#5D51ED #ED5193 #E1ED51 #51EDAB
square
#5D51ED #ED5193 #E1ED51 #51EDAB
split-complementary
#5D51ED #EDAB51 #93ED51
monochromatic
#1F12B1 #291AE7 #5D51ED #9188F3 #C4C0F8

Accessibility & contrast

On white

5.43
#5D51ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5D51ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51ED
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51ED#FFFFFF#000000##FFFFFF
##5D51ED1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F2
Deuteranopia (green-blind)
#0064EA
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5d51ed;
/* rgb */ color: rgb(93, 81, 237);
/* oklch */ color: oklch(54.4% 0.225 279.3);
Tailwind
colors: {
  custom: {
    50: '#9a83f4',
    500: '#5d51ed',
    950: '#000000',
  },
}
SCSS
$custom: #5d51ed;
$custom-light: #9a83f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51ed",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 237
  },
  "hsl": {
    "h": 244.615,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54378,
    "c": 0.22503,
    "h": 279.3
  },
  "luminance": 0.14326
}

Semantic roles & 50–950 ramp

primary
#5D51ED
secondary
#E5E9B0
accent
#DE08CD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51ED

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

Preview Lab → · Contrast checker → · Palette generator →

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