#5A7FE5#5A7FE5

#5A7FE5 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.9% C 0.159 H 266.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5A7FE5
RGBrgb(90, 127, 229)
HSLhsl(224, 73%, 63%)
HSVhsv(224, 61%, 90%)
CMYKcmyk(60.7%, 44.5%, 0%, 10.2%)
CIE-LABlab(55.08, 17.96, -55.78)
CIE-LCHlch(55.08, 58.60, 287.85°)
OKLaboklab(61.91% -0.009 -0.1592)
OKLCHoklch(61.91% 0.159 266.8)
XYZxyz(25.9439, 23.0073, 77.1872)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FE5 #E5C05A
analogous
#5AC4E5 #5A7FE5 #7B5AE5
triadic
#5A7FE5 #E55A7F #7FE55A
tetradic
#5A7FE5 #E55AC4 #E5C05A #5AE57B
square
#5A7FE5 #E55AC4 #E5C05A #5AE57B
split-complementary
#5A7FE5 #E57B5A #C4E55A
monochromatic
#1B41AA #2556DD #5A7FE5 #8FA8ED #C4D1F6

Accessibility & contrast

On white

3.75
#5A7FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5A7FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FE5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FE5#FFFFFF#000000##000000
##5A7FE51.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8BE9
Deuteranopia (green-blind)
#397EE3
Tritanopia (blue-blind)
#0096A7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7fe5;
/* rgb */ color: rgb(90, 127, 229);
/* oklch */ color: oklch(61.9% 0.159 266.8);
Tailwind
colors: {
  custom: {
    50: '#94a3ee',
    500: '#5a7fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fe5;
$custom-light: #94a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fe5",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 224.029,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61908,
    "c": 0.15943,
    "h": 266.8
  },
  "luminance": 0.2301
}

Semantic roles & 50–950 ramp

primary
#5A7FE5
secondary
#E7D9B4
accent
#A111D5
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A7FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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