#5D5FE5#5D5FE5

#5D5FE5 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 56.0% C 0.198 H 277.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5D5FE5
RGBrgb(93, 95, 229)
HSLhsl(239, 72%, 63%)
HSVhsv(239, 59%, 90%)
CMYKcmyk(59.4%, 58.5%, 0%, 10.2%)
CIE-LABlab(47.19, 38.04, -68.49)
CIE-LCHlch(47.19, 78.34, 299.05°)
OKLaboklab(56.01% 0.025 -0.1968)
OKLCHoklch(56.01% 0.198 277.2)
XYZxyz(22.7447, 16.1670, 76.0355)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5FE5 #E5E35D
analogous
#5DA3E5 #5D5FE5 #9F5DE5
triadic
#5D5FE5 #E55D5F #5FE55D
tetradic
#5D5FE5 #E55DA3 #E5E35D #5DE59F
square
#5D5FE5 #E55DA3 #E5E35D #5DE59F
split-complementary
#5D5FE5 #E59F5D #A3E55D
monochromatic
#1C1EAC #282BDD #5D5FE5 #9293ED #C6C7F6

Accessibility & contrast

On white

4.96
#5D5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5D5FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5FE5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5FE5#FFFFFF#000000##FFFFFF
##5D5FE51.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5d5fe5;
/* rgb */ color: rgb(93, 95, 229);
/* oklch */ color: oklch(56.0% 0.198 277.2);
Tailwind
colors: {
  custom: {
    50: '#978cee',
    500: '#5d5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5d5fe5;
$custom-light: #978cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5fe5",
  "rgb": {
    "r": 93,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 239.118,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56012,
    "c": 0.19839,
    "h": 277.2
  },
  "luminance": 0.16169
}

Semantic roles & 50–950 ramp

primary
#5D5FE5
secondary
#E7E7B7
accent
#D211D4
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #5D5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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