#5A4CCF#5A4CCF

#5A4CCF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.9% C 0.194 H 281.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5A4CCF
RGBrgb(90, 76, 207)
HSLhsl(246, 58%, 55%)
HSVhsv(246, 63%, 81%)
CMYKcmyk(56.5%, 63.3%, 0%, 18.8%)
CIE-LABlab(40.97, 41.89, -66.06)
CIE-LCHlch(40.97, 78.22, 302.38°)
OKLaboklab(50.87% 0.0398 -0.1899)
OKLCHoklch(50.87% 0.194 281.8)
XYZxyz(18.0599, 11.8464, 60.3543)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CCF #C1CF4C
analogous
#4C7FCF #5A4CCF #9B4CCF
triadic
#5A4CCF #CF5A4C #4CCF5A
tetradic
#5A4CCF #CF4C7F #C1CF4C #4CCF9B
square
#5A4CCF #CF4C7F #C1CF4C #4CCF9B
split-complementary
#5A4CCF #CF9B4C #7FCF4C
monochromatic
#2C227F #3D2FAF #5A4CCF #867CDC #B3ADE9

Accessibility & contrast

On white

6.23
#5A4CCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5A4CCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CCF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CCF#FFFFFF#000000##FFFFFF
##5A4CCF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#1B6C86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4ccf;
/* rgb */ color: rgb(90, 76, 207);
/* oklch */ color: oklch(50.9% 0.194 281.8);
Tailwind
colors: {
  custom: {
    50: '#937fdf',
    500: '#5a4ccf',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ccf;
$custom-light: #937fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ccf",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 207
  },
  "hsl": {
    "h": 246.412,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50868,
    "c": 0.194,
    "h": 281.8
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#5A4CCF
secondary
#D1D7A0
accent
#E147D0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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