#5A5DDC#5A5DDC

#5A5DDC is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.8% C 0.190 H 277.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A5DDC
RGBrgb(90, 93, 220)
HSLhsl(239, 65%, 61%)
HSVhsv(239, 59%, 86%)
CMYKcmyk(59.1%, 57.7%, 0%, 13.7%)
CIE-LABlab(45.86, 35.83, -65.55)
CIE-LCHlch(45.86, 74.71, 298.66°)
OKLaboklab(54.77% 0.0234 -0.1883)
OKLCHoklch(54.77% 0.19 277.1)
XYZxyz(21.0449, 15.1681, 69.5150)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DDC #DCD95A
analogous
#5A9EDC #5A5DDC #985ADC
triadic
#5A5DDC #DC5A5D #5DDC5A
tetradic
#5A5DDC #DC5A9E #DCD95A #5ADC98
square
#5A5DDC #DC5A9E #DCD95A #5ADC98
split-complementary
#5A5DDC #DC985A #9EDC5A
monochromatic
#21249B #2C2FCD #5A5DDC #8C8FE7 #BFC0F1

Accessibility & contrast

On white

5.21
#5A5DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A5DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DDC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DDC#FFFFFF#000000##FFFFFF
##5A5DDC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5ddc;
/* rgb */ color: rgb(90, 93, 220);
/* oklch */ color: oklch(54.8% 0.190 277.1);
Tailwind
colors: {
  custom: {
    50: '#948be8',
    500: '#5a5ddc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ddc;
$custom-light: #948be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ddc",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 220
  },
  "hsl": {
    "h": 238.615,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.18973,
    "h": 277.1
  },
  "luminance": 0.1517
}

Semantic roles & 50–950 ramp

primary
#5A5DDC
secondary
#E2E0B0
accent
#C919CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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