#5A51DE#5A51DE

#5A51DE is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.207 H 279.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5A51DE
RGBrgb(90, 81, 222)
HSLhsl(244, 68%, 59%)
HSVhsv(244, 64%, 87%)
CMYKcmyk(59.5%, 63.5%, 0%, 12.9%)
CIE-LABlab(43.26, 43.65, -70.93)
CIE-LCHlch(43.26, 83.29, 301.61°)
OKLaboklab(52.9% 0.0341 -0.2042)
OKLCHoklch(52.9% 0.207 279.5)
XYZxyz(20.3395, 13.3310, 70.5944)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51DE #D5DE51
analogous
#518FDE #5A51DE #A151DE
triadic
#5A51DE #DE5A51 #51DE5A
tetradic
#5A51DE #DE518F #D5DE51 #51DEA1
square
#5A51DE #DE518F #D5DE51 #51DEA1
split-complementary
#5A51DE #DEA151 #8FDE51
monochromatic
#251D98 #3127CB #5A51DE #8B84E8 #BCB8F2

Accessibility & contrast

On white

5.73
#5A51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5A51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51DE
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51DE#FFFFFF#000000##FFFFFF
##5A51DE1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE2
Deuteranopia (green-blind)
#0061DB
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a51de;
/* rgb */ color: rgb(90, 81, 222);
/* oklch */ color: oklch(52.9% 0.207 279.5);
Tailwind
colors: {
  custom: {
    50: '#9683e9',
    500: '#5a51de',
    950: '#000000',
  },
}
SCSS
$custom: #5a51de;
$custom-light: #9683e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51de",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 243.83,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52902,
    "c": 0.20698,
    "h": 279.5
  },
  "luminance": 0.13332
}

Semantic roles & 50–950 ramp

primary
#5A51DE
secondary
#DDE1AA
accent
#EB3DE0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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