#5A5CD9#5A5CD9

#5A5CD9 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.4% C 0.187 H 277.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A5CD9
RGBrgb(90, 92, 217)
HSLhsl(239, 63%, 60%)
HSVhsv(239, 59%, 85%)
CMYKcmyk(58.5%, 57.6%, 0%, 14.9%)
CIE-LABlab(45.41, 35.47, -64.58)
CIE-LCHlch(45.41, 73.68, 298.78°)
OKLaboklab(54.36% 0.0244 -0.1854)
OKLCHoklch(54.36% 0.187 277.5)
XYZxyz(20.5640, 14.8362, 67.4122)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CD9 #D9D75A
analogous
#5A9CD9 #5A5CD9 #975AD9
triadic
#5A5CD9 #D95A5C #5CD95A
tetradic
#5A5CD9 #D95A9C #D9D75A #5AD997
square
#5A5CD9 #D95A9C #D9D75A #5AD997
split-complementary
#5A5CD9 #D9975A #9CD95A
monochromatic
#232496 #2E30C8 #5A5CD9 #8C8DE4 #BDBEF0

Accessibility & contrast

On white

5.29
#5A5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5A5CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CD9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CD9#FFFFFF#000000##FFFFFF
##5A5CD91.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5cd9;
/* rgb */ color: rgb(90, 92, 217);
/* oklch */ color: oklch(54.4% 0.187 277.5);
Tailwind
colors: {
  custom: {
    50: '#948ae6',
    500: '#5a5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cd9;
$custom-light: #948ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cd9",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 239.055,
    "s": 62.562,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54365,
    "c": 0.18704,
    "h": 277.5
  },
  "luminance": 0.14838
}

Semantic roles & 50–950 ramp

primary
#5A5CD9
secondary
#E0DFAF
accent
#C81BCA
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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