#5A5FFA#5A5FFA

#5A5FFA is a mid, highly saturated blue. Relative luminance 0.173; OKLCH L 57.5% C 0.226 H 275.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5A5FFA
RGBrgb(90, 95, 250)
HSLhsl(238, 94%, 67%)
HSVhsv(238, 64%, 98%)
CMYKcmyk(64%, 62%, 0%, 2%)
CIE-LABlab(48.58, 44.35, -78.01)
CIE-LCHlch(48.58, 89.73, 299.62°)
OKLaboklab(57.48% 0.0208 -0.2249)
OKLCHoklch(57.48% 0.226 275.3)
XYZxyz(25.5583, 17.2580, 92.4082)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FFA #FAF55A
analogous
#5AAFFA #5A5FFA #A55AFA
triadic
#5A5FFA #FA5A5F #5FFA5A
tetradic
#5A5FFA #FA5AAF #FAF55A #5AFAA5
square
#5A5FFA #FA5AAF #FAF55A #5AFAA5
split-complementary
#5A5FFA #FAA55A #AFFA5A
monochromatic
#060DD3 #1F25F8 #5A5FFA #9599FC #D1D2FE

Accessibility & contrast

On white

4.72
#5A5FFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5A5FFA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FFA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FFA#FFFFFF#000000##FFFFFF
##5A5FFA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#006CF7
Tritanopia (blue-blind)
#0086A4
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a5ffa;
/* rgb */ color: rgb(90, 95, 250);
/* oklch */ color: oklch(57.5% 0.226 275.3);
Tailwind
colors: {
  custom: {
    50: '#998dfd',
    500: '#5a5ffa',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ffa;
$custom-light: #998dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ffa",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 250
  },
  "hsl": {
    "h": 238.125,
    "s": 94.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.5748,
    "c": 0.22582,
    "h": 275.3
  },
  "luminance": 0.1726
}

Semantic roles & 50–950 ramp

primary
#5A5FFA
secondary
#F2F0BE
accent
#DE00E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5A5FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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