#5A5FF3#5A5FF3

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

Color values

HEX#5A5FF3
RGBrgb(90, 95, 243)
HSLhsl(238, 86%, 65%)
HSVhsv(238, 63%, 95%)
CMYKcmyk(63%, 60.9%, 0%, 4.7%)
CIE-LABlab(48.04, 42.09, -74.98)
CIE-LCHlch(48.04, 85.99, 299.30°)
OKLaboklab(56.91% 0.0211 -0.216)
OKLCHoklch(56.91% 0.217 275.6)
XYZxyz(24.4810, 16.8271, 86.7345)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF3 #F3EE5A
analogous
#5AACF3 #5A5FF3 #A15AF3
triadic
#5A5FF3 #F35A5F #5FF35A
tetradic
#5A5FF3 #F35AAC #F3EE5A #5AF3A1
square
#5A5FF3 #F35AAC #F3EE5A #5AF3A1
split-complementary
#5A5FF3 #F3A15A #ACF35A
monochromatic
#0E14C4 #2128EF #5A5FF3 #9396F7 #CCCEFB

Accessibility & contrast

On white

4.81
#5A5FF3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5A5FF3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF3#FFFFFF#000000##FFFFFF
##5A5FF31.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5ff3;
/* rgb */ color: rgb(90, 95, 243);
/* oklch */ color: oklch(56.9% 0.217 275.6);
Tailwind
colors: {
  custom: {
    50: '#988cf8',
    500: '#5a5ff3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff3;
$custom-light: #988cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff3",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 243
  },
  "hsl": {
    "h": 238.039,
    "s": 86.441,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.21701,
    "h": 275.6
  },
  "luminance": 0.16829
}

Semantic roles & 50–950 ramp

primary
#5A5FF3
secondary
#EEECBB
accent
#DC03E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF3

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

Preview Lab → · Contrast checker → · Palette generator →

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