#5D46E6#5D46E6

#5D46E6 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.2% C 0.229 H 281.5°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5D46E6
RGBrgb(93, 70, 230)
HSLhsl(249, 76%, 59%)
HSVhsv(249, 70%, 90%)
CMYKcmyk(59.6%, 69.6%, 0%, 9.8%)
CIE-LABlab(41.87, 52.73, -77.74)
CIE-LCHlch(41.87, 93.93, 304.15°)
OKLaboklab(52.17% 0.0456 -0.224)
OKLCHoklch(52.17% 0.229 281.5)
XYZxyz(20.9828, 12.4192, 76.1390)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46E6 #CFE646
analogous
#467FE6 #5D46E6 #AD46E6
triadic
#5D46E6 #E65D46 #46E65D
tetradic
#5D46E6 #E6467F #CFE646 #46E6AD
square
#5D46E6 #E6467F #CFE646 #46E6AD
split-complementary
#5D46E6 #E6AD46 #7FE646
monochromatic
#29159C #371CD2 #5D46E6 #8C7CED #BBB2F5

Accessibility & contrast

On white

6.03
#5D46E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5D46E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46E6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46E6#FFFFFF#000000##FFFFFF
##5D46E61.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005DE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5d46e6;
/* rgb */ color: rgb(93, 70, 230);
/* oklch */ color: oklch(52.2% 0.229 281.5);
Tailwind
colors: {
  custom: {
    50: '#997cef',
    500: '#5d46e6',
    950: '#000000',
  },
}
SCSS
$custom: #5d46e6;
$custom-light: #997cef;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46e6",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 230
  },
  "hsl": {
    "h": 248.625,
    "s": 76.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52169,
    "c": 0.22863,
    "h": 281.5
  },
  "luminance": 0.12421
}

Semantic roles & 50–950 ramp

primary
#5D46E6
secondary
#DAE3A4
accent
#F335D7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5D46E6

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

Preview Lab → · Contrast checker → · Palette generator →

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