#5A4BBB#5A4BBB

#5A4BBB is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.1% C 0.169 H 284.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5A4BBB
RGBrgb(90, 75, 187)
HSLhsl(248, 45%, 51%)
HSVhsv(248, 60%, 73%)
CMYKcmyk(51.9%, 59.9%, 0%, 26.7%)
CIE-LABlab(39.23, 36.28, -57.27)
CIE-LCHlch(39.23, 67.79, 302.36°)
OKLaboklab(49.12% 0.042 -0.164)
OKLCHoklch(49.12% 0.169 284.4)
XYZxyz(15.6995, 10.7928, 48.2601)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BBB #ACBB4B
analogous
#4B74BB #5A4BBB #924BBB
triadic
#5A4BBB #BB5A4B #4BBB5A
tetradic
#5A4BBB #BB4B74 #ACBB4B #4BBB92
square
#5A4BBB #BB4B74 #ACBB4B #4BBB92
split-complementary
#5A4BBB #BB924B #74BB4B
monochromatic
#2F2665 #433792 #5A4BBB #8377CC #ABA4DD

Accessibility & contrast

On white

6.65
#5A4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5A4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BBB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BBB#FFFFFF#000000##FFFFFF
##5A4BBB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#34657C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4bbb;
/* rgb */ color: rgb(90, 75, 187);
/* oklch */ color: oklch(49.1% 0.169 284.4);
Tailwind
colors: {
  custom: {
    50: '#907ed0',
    500: '#5a4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bbb;
$custom-light: #907ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bbb",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 248.036,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49118,
    "c": 0.16931,
    "h": 284.4
  },
  "luminance": 0.10794
}

Semantic roles & 50–950 ramp

primary
#5A4BBB
secondary
#C3CA98
accent
#D553C3
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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