#5A7FE6#5A7FE6

#5A7FE6 is a mid, vivid blue. Relative luminance 0.231; OKLCH L 62.0% C 0.161 H 266.8°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5A7FE6
RGBrgb(90, 127, 230)
HSLhsl(224, 74%, 63%)
HSVhsv(224, 61%, 90%)
CMYKcmyk(60.9%, 44.8%, 0%, 9.8%)
CIE-LABlab(55.14, 18.30, -56.25)
CIE-LCHlch(55.14, 59.15, 288.02°)
OKLaboklab(61.97% -0.0089 -0.1605)
OKLCHoklch(61.97% 0.161 266.8)
XYZxyz(26.0839, 23.0633, 77.9247)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FE6 #E6C15A
analogous
#5AC5E6 #5A7FE6 #7B5AE6
triadic
#5A7FE6 #E65A7F #7FE65A
tetradic
#5A7FE6 #E65AC5 #E6C15A #5AE67B
square
#5A7FE6 #E65AC5 #E6C15A #5AE67B
split-complementary
#5A7FE6 #E67B5A #C5E65A
monochromatic
#1A40AC #2556DE #5A7FE6 #8FA8EE #C4D1F6

Accessibility & contrast

On white

3.74
#5A7FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5A7FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FE6
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FE6#FFFFFF#000000##000000
##5A7FE61.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8BEA
Deuteranopia (green-blind)
#387EE4
Tritanopia (blue-blind)
#0096A7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7fe6;
/* rgb */ color: rgb(90, 127, 230);
/* oklch */ color: oklch(62.0% 0.161 266.8);
Tailwind
colors: {
  custom: {
    50: '#94a3ee',
    500: '#5a7fe6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fe6;
$custom-light: #94a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fe6",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 230
  },
  "hsl": {
    "h": 224.143,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61971,
    "c": 0.16078,
    "h": 266.8
  },
  "luminance": 0.23066
}

Semantic roles & 50–950 ramp

primary
#5A7FE6
secondary
#E7DAB5
accent
#A110D6
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A7FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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