#5A4DCB#5A4DCB

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

Color values

HEX#5A4DCB
RGBrgb(90, 77, 203)
HSLhsl(246, 55%, 55%)
HSVhsv(246, 62%, 80%)
CMYKcmyk(55.7%, 62.1%, 0%, 20.4%)
CIE-LABlab(40.88, 40.05, -63.90)
CIE-LCHlch(40.88, 75.41, 302.08°)
OKLaboklab(50.71% 0.0392 -0.1835)
OKLCHoklch(50.71% 0.188 282)
XYZxyz(17.6465, 11.7921, 57.8346)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DCB #BECB4D
analogous
#4D7FCB #5A4DCB #994DCB
triadic
#5A4DCB #CB5A4D #4DCB5A
tetradic
#5A4DCB #CB4D7F #BECB4D #4DCB99
square
#5A4DCB #CB4D7F #BECB4D #4DCB99
split-complementary
#5A4DCB #CB994D #7FCB4D
monochromatic
#2D247A #3E31A9 #5A4DCB #867CD9 #B2ACE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4DCB#FFFFFF#000000##FFFFFF
##5A4DCB1.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)
#0065CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#226C85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a4dcb;
/* rgb */ color: rgb(90, 77, 203);
/* oklch */ color: oklch(50.7% 0.188 282.0);
Tailwind
colors: {
  custom: {
    50: '#937fdc',
    500: '#5a4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dcb;
$custom-light: #937fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dcb",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 246.19,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50708,
    "c": 0.18764,
    "h": 282
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#5A4DCB
secondary
#CFD49F
accent
#DE4ACF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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