#5A5EFF#5A5EFF

#5A5EFF is a mid, highly saturated blue. Relative luminance 0.174; OKLCH L 57.7% C 0.233 H 275.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5A5EFF
RGBrgb(90, 94, 255)
HSLhsl(239, 100%, 68%)
HSVhsv(239, 65%, 100%)
CMYKcmyk(64.7%, 63.1%, 0%, 0%)
CIE-LABlab(48.76, 46.55, -80.50)
CIE-LCHlch(48.76, 92.99, 300.04°)
OKLaboklab(57.73% 0.0212 -0.2322)
OKLCHoklch(57.73% 0.233 275.2)
XYZxyz(26.2632, 17.3968, 96.5622)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EFF #FFFB5A
analogous
#5AB1FF #5A5EFF #A85AFF
triadic
#5A5EFF #FF5A5E #5EFF5A
tetradic
#5A5EFF #FF5AB1 #FFFB5A #5AFFA8
square
#5A5EFF #FF5AB1 #FFFB5A #5AFFA8
split-complementary
#5A5EFF #FFA85A #B1FF5A
monochromatic
#0005DF #1D22FF #5A5EFF #979AFF #D4D5FF

Accessibility & contrast

On white

4.69
#5A5EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5A5EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EFF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EFF#FFFFFF#000000##FFFFFF
##5A5EFF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#006CFC
Tritanopia (blue-blind)
#0087A6
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a5eff;
/* rgb */ color: rgb(90, 94, 255);
/* oklch */ color: oklch(57.7% 0.233 275.2);
Tailwind
colors: {
  custom: {
    50: '#9a8cff',
    500: '#5a5eff',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eff;
$custom-light: #9a8cff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eff",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 255
  },
  "hsl": {
    "h": 238.545,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.57729,
    "c": 0.23315,
    "h": 275.2
  },
  "luminance": 0.17399
}

Semantic roles & 50–950 ramp

primary
#5A5EFF
secondary
#F4F3C1
accent
#E000E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5A5EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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