#5A4CDE#5A4CDE

#5A4CDE is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.1% C 0.213 H 280.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5A4CDE
RGBrgb(90, 76, 222)
HSLhsl(246, 69%, 58%)
HSVhsv(246, 66%, 87%)
CMYKcmyk(59.5%, 65.8%, 0%, 12.9%)
CIE-LABlab(42.18, 46.54, -72.70)
CIE-LCHlch(42.18, 86.32, 302.63°)
OKLaboklab(52.12% 0.0383 -0.2094)
OKLCHoklch(52.12% 0.213 280.4)
XYZxyz(19.9815, 12.6150, 70.4751)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CDE #D0DE4C
analogous
#4C87DE #5A4CDE #A34CDE
triadic
#5A4CDE #DE5A4C #4CDE5A
tetradic
#5A4CDE #DE4C87 #D0DE4C #4CDEA3
square
#5A4CDE #DE4C87 #D0DE4C #4CDEA3
split-complementary
#5A4CDE #DEA34C #87DE4C
monochromatic
#271B94 #3425C8 #5A4CDE #8A80E8 #B9B3F1

Accessibility & contrast

On white

5.96
#5A4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CDE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CDE#FFFFFF#000000##FFFFFF
##5A4CDE1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E3
Deuteranopia (green-blind)
#005EDB
Tritanopia (blue-blind)
#00728E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4cde;
/* rgb */ color: rgb(90, 76, 222);
/* oklch */ color: oklch(52.1% 0.213 280.4);
Tailwind
colors: {
  custom: {
    50: '#967fe9',
    500: '#5a4cde',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cde;
$custom-light: #967fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cde",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 245.753,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52118,
    "c": 0.21283,
    "h": 280.4
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#5A4CDE
secondary
#DAE0A6
accent
#EC3CDB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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