#5A5EDC#5A5EDC

#5A5EDC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.188 H 276.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5A5EDC
RGBrgb(90, 94, 220)
HSLhsl(238, 65%, 61%)
HSVhsv(238, 59%, 86%)
CMYKcmyk(59.1%, 57.3%, 0%, 13.7%)
CIE-LABlab(46.10, 35.22, -65.16)
CIE-LCHlch(46.10, 74.08, 298.39°)
OKLaboklab(54.95% 0.0225 -0.1871)
OKLCHoklch(54.95% 0.188 276.9)
XYZxyz(21.1333, 15.3448, 69.5445)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EDC #DCD85A
analogous
#5A9FDC #5A5EDC #975ADC
triadic
#5A5EDC #DC5A5E #5EDC5A
tetradic
#5A5EDC #DC5A9F #DCD85A #5ADC97
square
#5A5EDC #DC5A9F #DCD85A #5ADC97
split-complementary
#5A5EDC #DC975A #9FDC5A
monochromatic
#21259B #2C31CD #5A5EDC #8C8FE7 #BFC1F1

Accessibility & contrast

On white

5.16
#5A5EDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5A5EDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EDC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EDC#FFFFFF#000000##FFFFFF
##5A5EDC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5edc;
/* rgb */ color: rgb(90, 94, 220);
/* oklch */ color: oklch(54.9% 0.188 276.9);
Tailwind
colors: {
  custom: {
    50: '#948be8',
    500: '#5a5edc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5edc;
$custom-light: #948be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5edc",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 220
  },
  "hsl": {
    "h": 238.154,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.18848,
    "h": 276.9
  },
  "luminance": 0.15346
}

Semantic roles & 50–950 ramp

primary
#5A5EDC
secondary
#E2E0B0
accent
#C719CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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