#5A5CDC#5A5CDC

#5A5CDC is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.6% C 0.191 H 277.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5A5CDC
RGBrgb(90, 92, 220)
HSLhsl(239, 65%, 61%)
HSVhsv(239, 59%, 86%)
CMYKcmyk(59.1%, 58.2%, 0%, 13.7%)
CIE-LABlab(45.63, 36.44, -65.94)
CIE-LCHlch(45.63, 75.34, 298.93°)
OKLaboklab(54.59% 0.0244 -0.1894)
OKLCHoklch(54.59% 0.191 277.3)
XYZxyz(20.9577, 14.9937, 69.4859)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CDC #DCDA5A
analogous
#5A9DDC #5A5CDC #995ADC
triadic
#5A5CDC #DC5A5C #5CDC5A
tetradic
#5A5CDC #DC5A9D #DCDA5A #5ADC99
square
#5A5CDC #DC5A9D #DCDA5A #5ADC99
split-complementary
#5A5CDC #DC995A #9DDC5A
monochromatic
#21239B #2C2ECD #5A5CDC #8C8EE7 #BFC0F1

Accessibility & contrast

On white

5.25
#5A5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5A5CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CDC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CDC#FFFFFF#000000##FFFFFF
##5A5CDC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5cdc;
/* rgb */ color: rgb(90, 92, 220);
/* oklch */ color: oklch(54.6% 0.191 277.3);
Tailwind
colors: {
  custom: {
    50: '#948ae8',
    500: '#5a5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cdc;
$custom-light: #948ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cdc",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 239.077,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54594,
    "c": 0.19099,
    "h": 277.3
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#5A5CDC
secondary
#E2E1B0
accent
#CA19CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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