#5A5EDD#5A5EDD

#5A5EDD is a mid, vivid blue. Relative luminance 0.154; OKLCH L 55.0% C 0.190 H 276.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A5EDD
RGBrgb(90, 94, 221)
HSLhsl(238, 66%, 61%)
HSVhsv(238, 59%, 87%)
CMYKcmyk(59.3%, 57.5%, 0%, 13.3%)
CIE-LABlab(46.17, 35.55, -65.62)
CIE-LCHlch(46.17, 74.63, 298.45°)
OKLaboklab(55.02% 0.0225 -0.1885)
OKLCHoklch(55.02% 0.19 276.8)
XYZxyz(21.2661, 15.3979, 70.2440)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EDD #DDD95A
analogous
#5A9FDD #5A5EDD #975ADD
triadic
#5A5EDD #DD5A5E #5EDD5A
tetradic
#5A5EDD #DD5A9F #DDD95A #5ADD97
square
#5A5EDD #DD5A9F #DDD95A #5ADD97
split-complementary
#5A5EDD #DD975A #9FDD5A
monochromatic
#20249C #2B30CF #5A5EDD #8D90E7 #BFC1F2

Accessibility & contrast

On white

5.15
#5A5EDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A5EDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EDD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EDD#FFFFFF#000000##FFFFFF
##5A5EDD1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E1
Deuteranopia (green-blind)
#0068DA
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5edd;
/* rgb */ color: rgb(90, 94, 221);
/* oklch */ color: oklch(55.0% 0.190 276.8);
Tailwind
colors: {
  custom: {
    50: '#948be8',
    500: '#5a5edd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5edd;
$custom-light: #948be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5edd",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 238.168,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55023,
    "c": 0.1898,
    "h": 276.8
  },
  "luminance": 0.154
}

Semantic roles & 50–950 ramp

primary
#5A5EDD
secondary
#E2E1B1
accent
#C818CE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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