#5D5CE1#5D5CE1

#5D5CE1 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 55.2% C 0.197 H 278.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5D5CE1
RGBrgb(93, 92, 225)
HSLhsl(240, 69%, 62%)
HSVhsv(240, 59%, 88%)
CMYKcmyk(58.7%, 59.1%, 0%, 11.8%)
CIE-LABlab(46.20, 38.56, -67.84)
CIE-LCHlch(46.20, 78.03, 299.61°)
OKLaboklab(55.19% 0.0278 -0.1949)
OKLCHoklch(55.19% 0.197 278.1)
XYZxyz(21.9276, 15.4161, 73.0397)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5CE1 #E0E15C
analogous
#5C9EE1 #5D5CE1 #A05CE1
triadic
#5D5CE1 #E15D5C #5CE15D
tetradic
#5D5CE1 #E15C9E #E0E15C #5CE1A0
square
#5D5CE1 #E15C9E #E0E15C #5CE1A0
split-complementary
#5D5CE1 #E1A05C #9EE15C
monochromatic
#1F1EA4 #2A28D7 #5D5CE1 #9090EB #C4C3F4

Accessibility & contrast

On white

5.14
#5D5CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5D5CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5CE1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5CE1#FFFFFF#000000##FFFFFF
##5D5CE11.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0068DE
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5d5ce1;
/* rgb */ color: rgb(93, 92, 225);
/* oklch */ color: oklch(55.2% 0.197 278.1);
Tailwind
colors: {
  custom: {
    50: '#978aeb',
    500: '#5d5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #5d5ce1;
$custom-light: #978aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5ce1",
  "rgb": {
    "r": 93,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 240.451,
    "s": 68.912,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55186,
    "c": 0.1969,
    "h": 278.1
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#5D5CE1
secondary
#E4E5B4
accent
#D115CF
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5D5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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