#5A4BBA#5A4BBA

#5A4BBA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.0% C 0.168 H 284.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5A4BBA
RGBrgb(90, 75, 186)
HSLhsl(248, 45%, 51%)
HSVhsv(248, 60%, 73%)
CMYKcmyk(51.6%, 59.7%, 0%, 27.1%)
CIE-LABlab(39.16, 35.97, -56.80)
CIE-LCHlch(39.16, 67.23, 302.35°)
OKLaboklab(49.04% 0.042 -0.1626)
OKLCHoklch(49.04% 0.168 284.5)
XYZxyz(15.5928, 10.7502, 47.6982)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BBA #ABBA4B
analogous
#4B73BA #5A4BBA #914BBA
triadic
#5A4BBA #BA5A4B #4BBA5A
tetradic
#5A4BBA #BA4B73 #ABBA4B #4BBA91
square
#5A4BBA #BA4B73 #ABBA4B #4BBA91
split-complementary
#5A4BBA #BA914B #73BA4B
monochromatic
#2F2664 #433790 #5A4BBA #8377CB #ABA3DC

Accessibility & contrast

On white

6.67
#5A4BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A4BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BBA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BBA#FFFFFF#000000##FFFFFF
##5A4BBA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#35657B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4bba;
/* rgb */ color: rgb(90, 75, 186);
/* oklch */ color: oklch(49.0% 0.168 284.5);
Tailwind
colors: {
  custom: {
    50: '#907ecf',
    500: '#5a4bba',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bba;
$custom-light: #907ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bba",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 248.108,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49042,
    "c": 0.16799,
    "h": 284.5
  },
  "luminance": 0.10751
}

Semantic roles & 50–950 ramp

primary
#5A4BBA
secondary
#C2C998
accent
#D454C3
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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