#5E5CD9#5E5CD9

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

Color values

HEX#5E5CD9
RGBrgb(94, 92, 217)
HSLhsl(241, 62%, 61%)
HSVhsv(241, 58%, 85%)
CMYKcmyk(56.7%, 57.6%, 0%, 14.9%)
CIE-LABlab(45.69, 36.18, -64.11)
CIE-LCHlch(45.69, 73.62, 299.44°)
OKLaboklab(54.65% 0.0291 -0.1839)
OKLCHoklch(54.65% 0.186 279)
XYZxyz(20.9637, 15.0423, 67.4310)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5CD9 #D7D95C
analogous
#5C98D9 #5E5CD9 #9C5CD9
triadic
#5E5CD9 #D95E5C #5CD95E
tetradic
#5E5CD9 #D95C98 #D7D95C #5CD99C
square
#5E5CD9 #D95C98 #D7D95C #5CD99C
split-complementary
#5E5CD9 #D99C5C #98D95C
monochromatic
#252397 #312FC9 #5E5CD9 #8F8EE5 #C0BFF0

Accessibility & contrast

On white

5.24
#5E5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5E5CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5CD9
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5CD9#FFFFFF#000000##FFFFFF
##5E5CD91.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e5cd9;
/* rgb */ color: rgb(94, 92, 217);
/* oklch */ color: oklch(54.6% 0.186 279.0);
Tailwind
colors: {
  custom: {
    50: '#968ae6',
    500: '#5e5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5e5cd9;
$custom-light: #968ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5cd9",
  "rgb": {
    "r": 94,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 240.96,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54647,
    "c": 0.18623,
    "h": 279
  },
  "luminance": 0.15044
}

Semantic roles & 50–950 ramp

primary
#5E5CD9
secondary
#DFE0B1
accent
#CA1CC7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5E5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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