#5A51CC#5A51CC

#5A51CC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.184 H 281.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5A51CC
RGBrgb(90, 81, 204)
HSLhsl(244, 55%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(55.9%, 60.3%, 0%, 20%)
CIE-LABlab(41.87, 37.98, -62.87)
CIE-LCHlch(41.87, 73.45, 301.13°)
OKLaboklab(51.46% 0.0352 -0.1805)
OKLCHoklch(51.46% 0.184 281.1)
XYZxyz(18.0546, 12.4170, 58.5604)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51CC #C3CC51
analogous
#5185CC #5A51CC #9751CC
triadic
#5A51CC #CC5A51 #51CC5A
tetradic
#5A51CC #CC5185 #C3CC51 #51CC97
square
#5A51CC #CC5185 #C3CC51 #51CC97
split-complementary
#5A51CC #CC9751 #85CC51
monochromatic
#2B257E #3C33AD #5A51CC #8780DA #B4B0E8

Accessibility & contrast

On white

6.03
#5A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51CC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51CC#FFFFFF#000000##FFFFFF
##5A51CC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#206F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a51cc;
/* rgb */ color: rgb(90, 81, 204);
/* oklch */ color: oklch(51.5% 0.184 281.1);
Tailwind
colors: {
  custom: {
    50: '#9382dc',
    500: '#5a51cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a51cc;
$custom-light: #9382dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51cc",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 244.39,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51455,
    "c": 0.18388,
    "h": 281.1
  },
  "luminance": 0.12418
}

Semantic roles & 50–950 ramp

primary
#5A51CC
secondary
#D2D6A3
accent
#DE4AD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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