#5A4BCA#5A4BCA

#5A4BCA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.3% C 0.189 H 282.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5A4BCA
RGBrgb(90, 75, 202)
HSLhsl(247, 55%, 54%)
HSVhsv(247, 63%, 79%)
CMYKcmyk(55.4%, 62.9%, 0%, 20.8%)
CIE-LABlab(40.36, 40.92, -64.17)
CIE-LCHlch(40.36, 76.11, 302.53°)
OKLaboklab(50.3% 0.0411 -0.1843)
OKLCHoklch(50.3% 0.189 282.6)
XYZxyz(17.3899, 11.4690, 57.1631)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BCA #BBCA4B
analogous
#4B7CCA #5A4BCA #9A4BCA
triadic
#5A4BCA #CA5A4B #4BCA5A
tetradic
#5A4BCA #CA4B7C #BBCA4B #4BCA9A
square
#5A4BCA #CA4B7C #BBCA4B #4BCA9A
split-complementary
#5A4BCA #CA9A4B #7CCA4B
monochromatic
#2D2377 #3F31A7 #5A4BCA #857AD8 #B1AAE6

Accessibility & contrast

On white

6.38
#5A4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5A4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BCA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BCA#FFFFFF#000000##FFFFFF
##5A4BCA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#246A83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4bca;
/* rgb */ color: rgb(90, 75, 202);
/* oklch */ color: oklch(50.3% 0.189 282.6);
Tailwind
colors: {
  custom: {
    50: '#937edb',
    500: '#5a4bca',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bca;
$custom-light: #937edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bca",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 247.087,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50301,
    "c": 0.18885,
    "h": 282.6
  },
  "luminance": 0.1147
}

Semantic roles & 50–950 ramp

primary
#5A4BCA
secondary
#CDD39D
accent
#DE4ACC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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