#5A5FF1#5A5FF1

#5A5FF1 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.8% C 0.214 H 275.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5A5FF1
RGBrgb(90, 95, 241)
HSLhsl(238, 84%, 65%)
HSVhsv(238, 63%, 95%)
CMYKcmyk(62.7%, 60.6%, 0%, 5.5%)
CIE-LABlab(47.89, 41.44, -74.11)
CIE-LCHlch(47.89, 84.91, 299.21°)
OKLaboklab(56.75% 0.0212 -0.2134)
OKLCHoklch(56.75% 0.214 275.7)
XYZxyz(24.1806, 16.7070, 85.1525)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF1 #F1EC5A
analogous
#5AABF1 #5A5FF1 #A05AF1
triadic
#5A5FF1 #F15A5F #5FF15A
tetradic
#5A5FF1 #F15AAB #F1EC5A #5AF1A0
square
#5A5FF1 #F15AAB #F1EC5A #5AF1A0
split-complementary
#5A5FF1 #F1A05A #ABF15A
monochromatic
#1016C0 #2228EC #5A5FF1 #9296F6 #CBCCFB

Accessibility & contrast

On white

4.84
#5A5FF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5A5FF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF1#FFFFFF#000000##FFFFFF
##5A5FF11.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F6
Deuteranopia (green-blind)
#006BEE
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a5ff1;
/* rgb */ color: rgb(90, 95, 241);
/* oklch */ color: oklch(56.8% 0.214 275.7);
Tailwind
colors: {
  custom: {
    50: '#988cf7',
    500: '#5a5ff1',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff1;
$custom-light: #988cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff1",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 241
  },
  "hsl": {
    "h": 238.013,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.21448,
    "h": 275.7
  },
  "luminance": 0.16709
}

Semantic roles & 50–950 ramp

primary
#5A5FF1
secondary
#EDEBBA
accent
#DA05E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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