#5E4DC5#5E4DC5

#5E4DC5 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.179 H 284.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5E4DC5
RGBrgb(94, 77, 197)
HSLhsl(249, 51%, 54%)
HSVhsv(249, 61%, 77%)
CMYKcmyk(52.3%, 60.9%, 0%, 22.7%)
CIE-LABlab(40.76, 38.93, -60.60)
CIE-LCHlch(40.76, 72.03, 302.72°)
OKLaboklab(50.56% 0.0447 -0.1737)
OKLCHoklch(50.56% 0.179 284.4)
XYZxyz(17.3450, 11.7177, 54.1603)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4DC5 #B4C54D
analogous
#4D78C5 #5E4DC5 #9A4DC5
triadic
#5E4DC5 #C55E4D #4DC55E
tetradic
#5E4DC5 #C54D78 #B4C54D #4DC59A
square
#5E4DC5 #C54D78 #B4C54D #4DC59A
split-complementary
#5E4DC5 #C59A4D #78C54D
monochromatic
#302572 #4434A0 #5E4DC5 #887BD4 #B2A9E3

Accessibility & contrast

On white

6.28
#5E4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5E4DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4DC5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4DC5#FFFFFF#000000##FFFFFF
##5E4DC51.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#356A82
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e4dc5;
/* rgb */ color: rgb(94, 77, 197);
/* oklch */ color: oklch(50.6% 0.179 284.4);
Tailwind
colors: {
  custom: {
    50: '#947fd7',
    500: '#5e4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5e4dc5;
$custom-light: #947fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4dc5",
  "rgb": {
    "r": 94,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 248.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5056,
    "c": 0.17934,
    "h": 284.4
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#5E4DC5
secondary
#C9D19D
accent
#DA4DC6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5E4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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