#5A4FCF#5A4FCF

#5A4FCF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.190 H 281.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5A4FCF
RGBrgb(90, 79, 207)
HSLhsl(245, 57%, 56%)
HSVhsv(245, 62%, 81%)
CMYKcmyk(56.5%, 61.8%, 0%, 18.8%)
CIE-LABlab(41.64, 40.11, -64.97)
CIE-LCHlch(41.64, 76.36, 301.69°)
OKLaboklab(51.36% 0.037 -0.1867)
OKLCHoklch(51.36% 0.19 281.2)
XYZxyz(18.2714, 12.2694, 60.4248)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FCF #C4CF4F
analogous
#4F84CF #5A4FCF #9A4FCF
triadic
#5A4FCF #CF5A4F #4FCF5A
tetradic
#5A4FCF #CF4F84 #C4CF4F #4FCF9A
square
#5A4FCF #CF4F84 #C4CF4F #4FCF9A
split-complementary
#5A4FCF #CF9A4F #84CF4F
monochromatic
#2B2381 #3B30B1 #5A4FCF #877FDC #B4AFE9

Accessibility & contrast

On white

6.08
#5A4FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A4FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FCF
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FCF#FFFFFF#000000##FFFFFF
##5A4FCF1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#1B6E87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4fcf;
/* rgb */ color: rgb(90, 79, 207);
/* oklch */ color: oklch(51.4% 0.190 281.2);
Tailwind
colors: {
  custom: {
    50: '#9381df',
    500: '#5a4fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fcf;
$custom-light: #9381df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fcf",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 245.156,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51357,
    "c": 0.1903,
    "h": 281.2
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#5A4FCF
secondary
#D3D7A2
accent
#E047D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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