#5A4DCE#5A4DCE

#5A4DCE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.9% C 0.192 H 281.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A4DCE
RGBrgb(90, 77, 206)
HSLhsl(246, 57%, 55%)
HSVhsv(246, 63%, 81%)
CMYKcmyk(56.3%, 62.6%, 0%, 19.2%)
CIE-LABlab(41.12, 40.99, -65.25)
CIE-LCHlch(41.12, 77.06, 302.13°)
OKLaboklab(50.95% 0.0389 -0.1875)
OKLCHoklch(50.95% 0.192 281.7)
XYZxyz(18.0074, 11.9365, 59.7356)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DCE #C1CE4D
analogous
#4D80CE #5A4DCE #9B4DCE
triadic
#5A4DCE #CE5A4D #4DCE5A
tetradic
#5A4DCE #CE4D80 #C1CE4D #4DCE9B
square
#5A4DCE #CE4D80 #C1CE4D #4DCE9B
split-complementary
#5A4DCE #CE9B4D #80CE4D
monochromatic
#2C237E #3D30AE #5A4DCE #867DDB #B3ADE8

Accessibility & contrast

On white

6.20
#5A4DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5A4DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DCE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DCE#FFFFFF#000000##FFFFFF
##5A4DCE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a4dce;
/* rgb */ color: rgb(90, 77, 206);
/* oklch */ color: oklch(50.9% 0.192 281.7);
Tailwind
colors: {
  custom: {
    50: '#937fde',
    500: '#5a4dce',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dce;
$custom-light: #937fde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dce",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 206
  },
  "hsl": {
    "h": 246.047,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.1915,
    "h": 281.7
  },
  "luminance": 0.11938
}

Semantic roles & 50–950 ramp

primary
#5A4DCE
secondary
#D1D6A1
accent
#E048D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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