#5D5DEC#5D5DEC

#5D5DEC is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.2% C 0.210 H 277.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5D5DEC
RGBrgb(93, 93, 236)
HSLhsl(240, 79%, 65%)
HSVhsv(240, 61%, 93%)
CMYKcmyk(60.6%, 60.6%, 0%, 7.5%)
CIE-LABlab(47.25, 41.48, -72.34)
CIE-LCHlch(47.25, 83.39, 299.83°)
OKLaboklab(56.22% 0.0265 -0.2081)
OKLCHoklch(56.22% 0.21 277.3)
XYZxyz(23.5640, 16.2102, 81.2277)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5DEC #ECEC5D
analogous
#5DA5EC #5D5DEC #A55DEC
triadic
#5D5DEC #EC5D5D #5DEC5D
tetradic
#5D5DEC #EC5DA5 #ECEC5D #5DECA5
square
#5D5DEC #EC5DA5 #ECEC5D #5DECA5
split-complementary
#5D5DEC #ECA55D #A5EC5D
monochromatic
#1616B9 #2626E6 #5D5DEC #9494F2 #CBCBF9

Accessibility & contrast

On white

4.95
#5D5DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5D5DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5DEC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5DEC#FFFFFF#000000##FFFFFF
##5D5DEC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5d5dec;
/* rgb */ color: rgb(93, 93, 236);
/* oklch */ color: oklch(56.2% 0.210 277.3);
Tailwind
colors: {
  custom: {
    50: '#998bf3',
    500: '#5d5dec',
    950: '#000000',
  },
}
SCSS
$custom: #5d5dec;
$custom-light: #998bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5dec",
  "rgb": {
    "r": 93,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 240,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56216,
    "c": 0.20983,
    "h": 277.3
  },
  "luminance": 0.16212
}

Semantic roles & 50–950 ramp

primary
#5D5DEC
secondary
#EBEBBA
accent
#DB0ADB
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5D5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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