#5A5FE5#5A5FE5

#5A5FE5 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.8% C 0.199 H 276.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A5FE5
RGBrgb(90, 95, 229)
HSLhsl(238, 73%, 63%)
HSVhsv(238, 61%, 90%)
CMYKcmyk(60.7%, 58.5%, 0%, 10.2%)
CIE-LABlab(46.99, 37.54, -68.82)
CIE-LCHlch(46.99, 78.39, 298.61°)
OKLaboklab(55.81% 0.0215 -0.1979)
OKLCHoklch(55.81% 0.199 276.2)
XYZxyz(22.4469, 16.0135, 76.0216)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FE5 #E5E05A
analogous
#5AA4E5 #5A5FE5 #9B5AE5
triadic
#5A5FE5 #E55A5F #5FE55A
tetradic
#5A5FE5 #E55AA4 #E5E05A #5AE59B
square
#5A5FE5 #E55AA4 #E5E05A #5AE59B
split-complementary
#5A5FE5 #E59B5A #A4E55A
monochromatic
#1B20AA #252CDD #5A5FE5 #8F92ED #C4C6F6

Accessibility & contrast

On white

5.00
#5A5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5A5FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FE5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FE5#FFFFFF#000000##FFFFFF
##5A5FE51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E9
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#008099
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5fe5;
/* rgb */ color: rgb(90, 95, 229);
/* oklch */ color: oklch(55.8% 0.199 276.2);
Tailwind
colors: {
  custom: {
    50: '#968cee',
    500: '#5a5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fe5;
$custom-light: #968cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fe5",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 237.842,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55811,
    "c": 0.19905,
    "h": 276.2
  },
  "luminance": 0.16015
}

Semantic roles & 50–950 ramp

primary
#5A5FE5
secondary
#E7E5B4
accent
#CE11D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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