#5A51DA#5A51DA

#5A51DA is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.6% C 0.202 H 279.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5A51DA
RGBrgb(90, 81, 218)
HSLhsl(244, 65%, 59%)
HSVhsv(244, 63%, 85%)
CMYKcmyk(58.7%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.94, 42.39, -69.17)
CIE-LCHlch(42.94, 81.12, 301.50°)
OKLaboklab(52.57% 0.0344 -0.199)
OKLCHoklch(52.57% 0.202 279.8)
XYZxyz(19.8098, 13.1191, 67.8044)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51DA #D1DA51
analogous
#518CDA #5A51DA #9E51DA
triadic
#5A51DA #DA5A51 #51DA5A
tetradic
#5A51DA #DA518C #D1DA51 #51DA9E
square
#5A51DA #DA518C #D1DA51 #51DA9E
split-complementary
#5A51DA #DA9E51 #8CDA51
monochromatic
#271F92 #342AC4 #5A51DA #8A83E5 #BAB6EF

Accessibility & contrast

On white

5.79
#5A51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5A51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51DA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51DA#FFFFFF#000000##FFFFFF
##5A51DA1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#00738E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a51da;
/* rgb */ color: rgb(90, 81, 218);
/* oklch */ color: oklch(52.6% 0.202 279.8);
Tailwind
colors: {
  custom: {
    50: '#9582e6',
    500: '#5a51da',
    950: '#000000',
  },
}
SCSS
$custom: #5a51da;
$custom-light: #9582e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51da",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 243.942,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52574,
    "c": 0.20193,
    "h": 279.8
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#5A51DA
secondary
#DBDEA8
accent
#E840DD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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