#5A51CA#5A51CA

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

Color values

HEX#5A51CA
RGBrgb(90, 81, 202)
HSLhsl(244, 53%, 55%)
HSVhsv(244, 60%, 79%)
CMYKcmyk(55.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.72, 37.35, -61.95)
CIE-LCHlch(41.72, 72.34, 301.08°)
OKLaboklab(51.3% 0.0353 -0.1778)
OKLCHoklch(51.3% 0.181 281.2)
XYZxyz(17.8162, 12.3217, 57.3052)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51CA #C1CA51
analogous
#5184CA #5A51CA #9651CA
triadic
#5A51CA #CA5A51 #51CA5A
tetradic
#5A51CA #CA5184 #C1CA51 #51CA96
square
#5A51CA #CA5184 #C1CA51 #51CA96
split-complementary
#5A51CA #CA9651 #84CA51
monochromatic
#2C257B #3D34AA #5A51CA #8680D8 #B3AFE7

Accessibility & contrast

On white

6.06
#5A51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51CA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51CA#FFFFFF#000000##FFFFFF
##5A51CA1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#236E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a51ca;
/* rgb */ color: rgb(90, 81, 202);
/* oklch */ color: oklch(51.3% 0.181 281.2);
Tailwind
colors: {
  custom: {
    50: '#9282db',
    500: '#5a51ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a51ca;
$custom-light: #9282db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51ca",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 244.463,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51299,
    "c": 0.18126,
    "h": 281.2
  },
  "luminance": 0.12323
}

Semantic roles & 50–950 ramp

primary
#5A51CA
secondary
#D1D5A2
accent
#DD4BD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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