#5A5FF2#5A5FF2

#5A5FF2 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.8% C 0.216 H 275.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5A5FF2
RGBrgb(90, 95, 242)
HSLhsl(238, 85%, 65%)
HSVhsv(238, 63%, 95%)
CMYKcmyk(62.8%, 60.7%, 0%, 5.1%)
CIE-LABlab(47.97, 41.76, -74.55)
CIE-LCHlch(47.97, 85.45, 299.26°)
OKLaboklab(56.83% 0.0212 -0.2147)
OKLCHoklch(56.83% 0.216 275.6)
XYZxyz(24.3304, 16.7669, 85.9413)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF2 #F2ED5A
analogous
#5AABF2 #5A5FF2 #A15AF2
triadic
#5A5FF2 #F25A5F #5FF25A
tetradic
#5A5FF2 #F25AAB #F2ED5A #5AF2A1
square
#5A5FF2 #F25AAB #F2ED5A #5AF2A1
split-complementary
#5A5FF2 #F2A15A #ABF25A
monochromatic
#0F15C2 #2128EE #5A5FF2 #9396F6 #CBCDFB

Accessibility & contrast

On white

4.82
#5A5FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#5A5FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF2#FFFFFF#000000##FFFFFF
##5A5FF21.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#006BEF
Tritanopia (blue-blind)
#0084A0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a5ff2;
/* rgb */ color: rgb(90, 95, 242);
/* oklch */ color: oklch(56.8% 0.216 275.6);
Tailwind
colors: {
  custom: {
    50: '#988cf7',
    500: '#5a5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff2;
$custom-light: #988cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff2",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 238.026,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56833,
    "c": 0.21575,
    "h": 275.6
  },
  "luminance": 0.16769
}

Semantic roles & 50–950 ramp

primary
#5A5FF2
secondary
#EEECBA
accent
#DB04E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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