#5D5FEC#5D5FEC

#5D5FEC is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.6% C 0.207 H 276.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5D5FEC
RGBrgb(93, 95, 236)
HSLhsl(239, 79%, 65%)
HSVhsv(239, 61%, 93%)
CMYKcmyk(60.6%, 59.7%, 0%, 7.5%)
CIE-LABlab(47.71, 40.29, -71.59)
CIE-LCHlch(47.71, 82.15, 299.37°)
OKLaboklab(56.55% 0.0248 -0.2059)
OKLCHoklch(56.55% 0.207 276.9)
XYZxyz(23.7418, 16.5659, 81.2870)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5FEC #ECEA5D
analogous
#5DA7EC #5D5FEC #A35DEC
triadic
#5D5FEC #EC5D5F #5FEC5D
tetradic
#5D5FEC #EC5DA7 #ECEA5D #5DECA3
square
#5D5FEC #EC5DA7 #ECEA5D #5DECA3
split-complementary
#5D5FEC #ECA35D #A7EC5D
monochromatic
#1618B9 #2629E6 #5D5FEC #9495F2 #CBCBF9

Accessibility & contrast

On white

4.87
#5D5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#5D5FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5FEC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5FEC#FFFFFF#000000##FFFFFF
##5D5FEC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#006BE9
Tritanopia (blue-blind)
#00829C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5d5fec;
/* rgb */ color: rgb(93, 95, 236);
/* oklch */ color: oklch(56.6% 0.207 276.9);
Tailwind
colors: {
  custom: {
    50: '#988cf3',
    500: '#5d5fec',
    950: '#000000',
  },
}
SCSS
$custom: #5d5fec;
$custom-light: #988cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5fec",
  "rgb": {
    "r": 93,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 239.161,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56554,
    "c": 0.20743,
    "h": 276.9
  },
  "luminance": 0.16568
}

Semantic roles & 50–950 ramp

primary
#5D5FEC
secondary
#EBEABA
accent
#D80ADB
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5D5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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