#5D5CD7#5D5CD7

#5D5CD7 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.4% C 0.184 H 278.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5D5CD7
RGBrgb(93, 92, 215)
HSLhsl(240, 61%, 60%)
HSVhsv(240, 57%, 84%)
CMYKcmyk(56.7%, 57.2%, 0%, 15.7%)
CIE-LABlab(45.48, 35.36, -63.32)
CIE-LCHlch(45.48, 72.53, 299.18°)
OKLaboklab(54.43% 0.0279 -0.1816)
OKLCHoklch(54.43% 0.184 278.7)
XYZxyz(20.6032, 14.8863, 66.0645)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5CD7 #D6D75C
analogous
#5C98D7 #5D5CD7 #9B5CD7
triadic
#5D5CD7 #D75D5C #5CD75D
tetradic
#5D5CD7 #D75C98 #D6D75C #5CD79B
square
#5D5CD7 #D75C98 #D6D75C #5CD79B
split-complementary
#5D5CD7 #D79B5C #98D75C
monochromatic
#252494 #3230C5 #5D5CD7 #8E8DE3 #BFBEEF

Accessibility & contrast

On white

5.28
#5D5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5D5CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5CD7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5CD7#FFFFFF#000000##FFFFFF
##5D5CD71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#157991
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5d5cd7;
/* rgb */ color: rgb(93, 92, 215);
/* oklch */ color: oklch(54.4% 0.184 278.7);
Tailwind
colors: {
  custom: {
    50: '#958ae4',
    500: '#5d5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5d5cd7;
$custom-light: #958ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5cd7",
  "rgb": {
    "r": 93,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 240.488,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54425,
    "c": 0.18377,
    "h": 278.7
  },
  "luminance": 0.14888
}

Semantic roles & 50–950 ramp

primary
#5D5CD7
secondary
#DFDFB0
accent
#C81DC7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5D5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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