#5A5FF6#5A5FF6

#5A5FF6 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.221 H 275.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5A5FF6
RGBrgb(90, 95, 246)
HSLhsl(238, 90%, 66%)
HSVhsv(238, 63%, 96%)
CMYKcmyk(63.4%, 61.4%, 0%, 3.5%)
CIE-LABlab(48.27, 43.06, -76.28)
CIE-LCHlch(48.27, 87.60, 299.44°)
OKLaboklab(57.16% 0.021 -0.2198)
OKLCHoklch(57.16% 0.221 275.4)
XYZxyz(24.9378, 17.0098, 89.1400)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF6 #F6F15A
analogous
#5AADF6 #5A5FF6 #A35AF6
triadic
#5A5FF6 #F65A5F #5FF65A
tetradic
#5A5FF6 #F65AAD #F6F15A #5AF6A3
square
#5A5FF6 #F65AAD #F6F15A #5AF6A3
split-complementary
#5A5FF6 #F6A35A #ADF65A
monochromatic
#0B11CB #2027F3 #5A5FF6 #9497F9 #CED0FC

Accessibility & contrast

On white

4.77
#5A5FF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5A5FF6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF6#FFFFFF#000000##FFFFFF
##5A5FF61.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#006CF3
Tritanopia (blue-blind)
#0085A2
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a5ff6;
/* rgb */ color: rgb(90, 95, 246);
/* oklch */ color: oklch(57.2% 0.221 275.4);
Tailwind
colors: {
  custom: {
    50: '#998cfa',
    500: '#5a5ff6',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff6;
$custom-light: #998cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff6",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 246
  },
  "hsl": {
    "h": 238.077,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.57155,
    "c": 0.2208,
    "h": 275.4
  },
  "luminance": 0.17012
}

Semantic roles & 50–950 ramp

primary
#5A5FF6
secondary
#F0EEBC
accent
#DE00E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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