#5A4CD2#5A4CD2

#5A4CD2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.1% C 0.198 H 281.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD2
RGBrgb(90, 76, 210)
HSLhsl(246, 60%, 56%)
HSVhsv(246, 64%, 82%)
CMYKcmyk(57.1%, 63.8%, 0%, 17.6%)
CIE-LABlab(41.21, 42.82, -67.41)
CIE-LCHlch(41.21, 79.86, 302.42°)
OKLaboklab(51.11% 0.0395 -0.1938)
OKLCHoklch(51.11% 0.198 281.5)
XYZxyz(18.4301, 11.9945, 62.3043)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD2 #C4D24C
analogous
#4C81D2 #5A4CD2 #9D4CD2
triadic
#5A4CD2 #D25A4C #4CD25A
tetradic
#5A4CD2 #D24C81 #C4D24C #4CD29D
square
#5A4CD2 #D24C81 #C4D24C #4CD29D
split-complementary
#5A4CD2 #D29D4C #81D24C
monochromatic
#2B2183 #3B2DB4 #5A4CD2 #877DDE #B4AEEB

Accessibility & contrast

On white

6.18
#5A4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5A4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD2#FFFFFF#000000##FFFFFF
##5A4CD21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#156D88
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4cd2;
/* rgb */ color: rgb(90, 76, 210);
/* oklch */ color: oklch(51.1% 0.198 281.5);
Tailwind
colors: {
  custom: {
    50: '#947fe1',
    500: '#5a4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd2;
$custom-light: #947fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd2",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 246.269,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51114,
    "c": 0.19782,
    "h": 281.5
  },
  "luminance": 0.11996
}

Semantic roles & 50–950 ramp

primary
#5A4CD2
secondary
#D3D9A1
accent
#E345D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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