#5A4BCB#5A4BCB

#5A4BCB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.4% C 0.190 H 282.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5A4BCB
RGBrgb(90, 75, 203)
HSLhsl(247, 55%, 55%)
HSVhsv(247, 63%, 80%)
CMYKcmyk(55.7%, 63.1%, 0%, 20.4%)
CIE-LABlab(40.44, 41.23, -64.62)
CIE-LCHlch(40.44, 76.66, 302.54°)
OKLaboklab(50.38% 0.0411 -0.1856)
OKLCHoklch(50.38% 0.19 282.5)
XYZxyz(17.5087, 11.5165, 57.7886)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BCB #BCCB4B
analogous
#4B7CCB #5A4BCB #9A4BCB
triadic
#5A4BCB #CB5A4B #4BCB5A
tetradic
#5A4BCB #CB4B7C #BCCB4B #4BCB9A
square
#5A4BCB #CB4B7C #BCCB4B #4BCB9A
split-complementary
#5A4BCB #CB9A4B #7CCB4B
monochromatic
#2D2379 #3F31A8 #5A4BCB #867AD9 #B1AAE6

Accessibility & contrast

On white

6.36
#5A4BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5A4BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BCB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BCB#FFFFFF#000000##FFFFFF
##5A4BCB1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#226B84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4bcb;
/* rgb */ color: rgb(90, 75, 203);
/* oklch */ color: oklch(50.4% 0.190 282.5);
Tailwind
colors: {
  custom: {
    50: '#937edc',
    500: '#5a4bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bcb;
$custom-light: #937edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bcb",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 247.031,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.19013,
    "h": 282.5
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#5A4BCB
secondary
#CED49E
accent
#DF49CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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