#5D5CD9#5D5CD9

#5D5CD9 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.6% C 0.186 H 278.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5D5CD9
RGBrgb(93, 92, 217)
HSLhsl(240, 62%, 61%)
HSVhsv(240, 58%, 85%)
CMYKcmyk(57.1%, 57.6%, 0%, 14.9%)
CIE-LABlab(45.62, 36.00, -64.23)
CIE-LCHlch(45.62, 73.63, 299.27°)
OKLaboklab(54.58% 0.0279 -0.1843)
OKLCHoklch(54.58% 0.186 278.6)
XYZxyz(20.8618, 14.9898, 67.4262)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5CD9 #D8D95C
analogous
#5C99D9 #5D5CD9 #9B5CD9
triadic
#5D5CD9 #D95D5C #5CD95D
tetradic
#5D5CD9 #D95C99 #D8D95C #5CD99B
square
#5D5CD9 #D95C99 #D8D95C #5CD99B
split-complementary
#5D5CD9 #D99B5C #99D95C
monochromatic
#242397 #302FC9 #5D5CD9 #8E8EE5 #C0BFF0

Accessibility & contrast

On white

5.25
#5D5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5D5CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5CD9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5CD9#FFFFFF#000000##FFFFFF
##5D5CD91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#107A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5d5cd9;
/* rgb */ color: rgb(93, 92, 217);
/* oklch */ color: oklch(54.6% 0.186 278.6);
Tailwind
colors: {
  custom: {
    50: '#968ae6',
    500: '#5d5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5d5cd9;
$custom-light: #968ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5cd9",
  "rgb": {
    "r": 93,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 240.48,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.18642,
    "h": 278.6
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

primary
#5D5CD9
secondary
#E0E0B1
accent
#CA1CC9
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5D5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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