#5D4DC7#5D4DC7

#5D4DC7 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.6% C 0.182 H 283.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5D4DC7
RGBrgb(93, 77, 199)
HSLhsl(248, 52%, 54%)
HSVhsv(248, 61%, 78%)
CMYKcmyk(53.3%, 61.3%, 0%, 22%)
CIE-LABlab(40.83, 39.36, -61.66)
CIE-LCHlch(40.83, 73.15, 302.55°)
OKLaboklab(50.63% 0.0433 -0.1768)
OKLCHoklch(50.63% 0.182 283.7)
XYZxyz(17.4738, 11.7574, 55.3704)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4DC7 #B7C74D
analogous
#4D7AC7 #5D4DC7 #9A4DC7
triadic
#5D4DC7 #C75D4D #4DC75D
tetradic
#5D4DC7 #C74D7A #B7C74D #4DC79A
square
#5D4DC7 #C74D7A #B7C74D #4DC79A
split-complementary
#5D4DC7 #C79A4D #7AC74D
monochromatic
#2F2575 #4233A3 #5D4DC7 #877CD6 #B2AAE4

Accessibility & contrast

On white

6.27
#5D4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5D4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4DC7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4DC7#FFFFFF#000000##FFFFFF
##5D4DC71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#306A83
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5d4dc7;
/* rgb */ color: rgb(93, 77, 199);
/* oklch */ color: oklch(50.6% 0.182 283.7);
Tailwind
colors: {
  custom: {
    50: '#947fd9',
    500: '#5d4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #5d4dc7;
$custom-light: #947fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4dc7",
  "rgb": {
    "r": 93,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 247.869,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50633,
    "c": 0.18206,
    "h": 283.7
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#5D4DC7
secondary
#CBD29E
accent
#DC4CC9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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