#5A5CC2#5A5CC2

#5A5CC2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.7% C 0.156 H 278.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5A5CC2
RGBrgb(90, 92, 194)
HSLhsl(239, 46%, 56%)
HSVhsv(239, 54%, 76%)
CMYKcmyk(53.6%, 52.6%, 0%, 23.9%)
CIE-LABlab(43.83, 28.05, -53.91)
CIE-LCHlch(43.83, 60.77, 297.49°)
OKLaboklab(52.69% 0.0237 -0.154)
OKLCHoklch(52.69% 0.156 278.8)
XYZxyz(17.7781, 13.7219, 52.7403)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CC2 #C2C05A
analogous
#5A90C2 #5A5CC2 #8C5AC2
triadic
#5A5CC2 #C25A5C #5CC25A
tetradic
#5A5CC2 #C25A90 #C2C05A #5AC28C
square
#5A5CC2 #C25A90 #C2C05A #5AC28C
split-complementary
#5A5CC2 #C28C5A #90C25A
monochromatic
#2C2D76 #3C3EA3 #5A5CC2 #8788D3 #B3B4E3

Accessibility & contrast

On white

5.61
#5A5CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5A5CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CC2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CC2#FFFFFF#000000##FFFFFF
##5A5CC21.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246CC6
Deuteranopia (green-blind)
#1364C0
Tritanopia (blue-blind)
#2B7386
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5cc2;
/* rgb */ color: rgb(90, 92, 194);
/* oklch */ color: oklch(52.7% 0.156 278.8);
Tailwind
colors: {
  custom: {
    50: '#908ad5',
    500: '#5a5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cc2;
$custom-light: #908ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cc2",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 238.846,
    "s": 46.018,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52688,
    "c": 0.15587,
    "h": 278.8
  },
  "luminance": 0.13723
}

Semantic roles & 50–950 ramp

primary
#5A5CC2
secondary
#D2D1A6
accent
#D352D6
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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