#5A5CE7#5A5CE7

#5A5CE7 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.5% C 0.205 H 276.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5CE7
RGBrgb(90, 92, 231)
HSLhsl(239, 75%, 63%)
HSVhsv(239, 61%, 91%)
CMYKcmyk(61%, 60.2%, 0%, 9.4%)
CIE-LABlab(46.44, 40.00, -70.85)
CIE-LCHlch(46.44, 81.36, 299.45°)
OKLaboklab(55.45% 0.0241 -0.2039)
OKLCHoklch(55.45% 0.205 276.7)
XYZxyz(22.4627, 15.5957, 77.4124)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CE7 #E7E55A
analogous
#5AA2E7 #5A5CE7 #9E5AE7
triadic
#5A5CE7 #E75A5C #5CE75A
tetradic
#5A5CE7 #E75AA2 #E7E55A #5AE79E
square
#5A5CE7 #E75AA2 #E7E55A #5AE79E
split-complementary
#5A5CE7 #E79E5A #A2E75A
monochromatic
#191BAD #2527DF #5A5CE7 #8F91EF #C5C6F7

Accessibility & contrast

On white

5.10
#5A5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5A5CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CE7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CE7#FFFFFF#000000##FFFFFF
##5A5CE71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0068E4
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5ce7;
/* rgb */ color: rgb(90, 92, 231);
/* oklch */ color: oklch(55.5% 0.205 276.7);
Tailwind
colors: {
  custom: {
    50: '#968af0',
    500: '#5a5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ce7;
$custom-light: #968af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ce7",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 239.149,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5545,
    "c": 0.20528,
    "h": 276.7
  },
  "luminance": 0.15597
}

Semantic roles & 50–950 ramp

primary
#5A5CE7
secondary
#E8E7B5
accent
#D40FD7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5A5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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