#5A4BC8#5A4BC8

#5A4BC8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.1% C 0.186 H 282.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A4BC8
RGBrgb(90, 75, 200)
HSLhsl(247, 53%, 54%)
HSVhsv(247, 63%, 78%)
CMYKcmyk(55%, 62.5%, 0%, 21.6%)
CIE-LABlab(40.20, 40.30, -63.26)
CIE-LCHlch(40.20, 75.01, 302.50°)
OKLaboklab(50.14% 0.0413 -0.1816)
OKLCHoklch(50.14% 0.186 282.8)
XYZxyz(17.1547, 11.3749, 55.9240)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BC8 #B9C84B
analogous
#4B7BC8 #5A4BC8 #994BC8
triadic
#5A4BC8 #C85A4B #4BC85A
tetradic
#5A4BC8 #C84B7B #B9C84B #4BC899
square
#5A4BC8 #C84B7B #B9C84B #4BC899
split-complementary
#5A4BC8 #C8994B #7BC84B
monochromatic
#2D2475 #4032A4 #5A4BC8 #857AD6 #B0A9E5

Accessibility & contrast

On white

6.41
#5A4BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A4BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BC8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BC8#FFFFFF#000000##FFFFFF
##5A4BC81.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#266A82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4bc8;
/* rgb */ color: rgb(90, 75, 200);
/* oklch */ color: oklch(50.1% 0.186 282.8);
Tailwind
colors: {
  custom: {
    50: '#927eda',
    500: '#5a4bc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bc8;
$custom-light: #927eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bc8",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 200
  },
  "hsl": {
    "h": 247.2,
    "s": 53.191,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5014,
    "c": 0.18628,
    "h": 282.8
  },
  "luminance": 0.11376
}

Semantic roles & 50–950 ramp

primary
#5A4BC8
secondary
#CCD29D
accent
#DD4BCB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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