#5A4CCE#5A4CCE

#5A4CCE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.8% C 0.193 H 281.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5A4CCE
RGBrgb(90, 76, 206)
HSLhsl(246, 57%, 55%)
HSVhsv(246, 63%, 81%)
CMYKcmyk(56.3%, 63.1%, 0%, 19.2%)
CIE-LABlab(40.89, 41.58, -65.62)
CIE-LCHlch(40.89, 77.68, 302.36°)
OKLaboklab(50.79% 0.0399 -0.1886)
OKLCHoklch(50.79% 0.193 281.9)
XYZxyz(17.9380, 11.7976, 59.7125)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CCE #C0CE4C
analogous
#4C7FCE #5A4CCE #9B4CCE
triadic
#5A4CCE #CE5A4C #4CCE5A
tetradic
#5A4CCE #CE4C7F #C0CE4C #4CCE9B
square
#5A4CCE #CE4C7F #C0CE4C #4CCE9B
split-complementary
#5A4CCE #CE9B4C #7FCE4C
monochromatic
#2C227D #3D2FAD #5A4CCE #867CDB #B3ACE8

Accessibility & contrast

On white

6.25
#5A4CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5A4CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CCE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CCE#FFFFFF#000000##FFFFFF
##5A4CCE1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#1D6C86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a4cce;
/* rgb */ color: rgb(90, 76, 206);
/* oklch */ color: oklch(50.8% 0.193 281.9);
Tailwind
colors: {
  custom: {
    50: '#937fde',
    500: '#5a4cce',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cce;
$custom-light: #937fde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cce",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 206
  },
  "hsl": {
    "h": 246.462,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50787,
    "c": 0.19273,
    "h": 281.9
  },
  "luminance": 0.11799
}

Semantic roles & 50–950 ramp

primary
#5A4CCE
secondary
#D0D6A0
accent
#E048D0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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