#5A5FF0#5A5FF0

#5A5FF0 is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.7% C 0.213 H 275.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5A5FF0
RGBrgb(90, 95, 240)
HSLhsl(238, 83%, 65%)
HSVhsv(238, 63%, 94%)
CMYKcmyk(62.5%, 60.4%, 0%, 5.9%)
CIE-LABlab(47.81, 41.11, -73.68)
CIE-LCHlch(47.81, 84.37, 299.16°)
OKLaboklab(56.67% 0.0212 -0.2121)
OKLCHoklch(56.67% 0.213 275.7)
XYZxyz(24.0317, 16.6474, 84.3680)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF0 #F0EB5A
analogous
#5AAAF0 #5A5FF0 #A05AF0
triadic
#5A5FF0 #F05A5F #5FF05A
tetradic
#5A5FF0 #F05AAA #F0EB5A #5AF0A0
square
#5A5FF0 #F05AAA #F0EB5A #5AF0A0
split-complementary
#5A5FF0 #F0A05A #AAF05A
monochromatic
#1117BE #2229EB #5A5FF0 #9295F5 #CACCFA

Accessibility & contrast

On white

4.85
#5A5FF0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5A5FF0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF0
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF0#FFFFFF#000000##FFFFFF
##5A5FF01.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F5
Deuteranopia (green-blind)
#006BED
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5ff0;
/* rgb */ color: rgb(90, 95, 240);
/* oklch */ color: oklch(56.7% 0.213 275.7);
Tailwind
colors: {
  custom: {
    50: '#988cf6',
    500: '#5a5ff0',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff0;
$custom-light: #988cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff0",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 240
  },
  "hsl": {
    "h": 238,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.2132,
    "h": 275.7
  },
  "luminance": 0.16649
}

Semantic roles & 50–950 ramp

primary
#5A5FF0
secondary
#EDEBB9
accent
#D806E0
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF0

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

Preview Lab → · Contrast checker → · Palette generator →

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