#5A51CD#5A51CD

#5A51CD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.185 H 281.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5A51CD
RGBrgb(90, 81, 205)
HSLhsl(244, 55%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(56.1%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.95, 38.29, -63.32)
CIE-LCHlch(41.95, 74.00, 301.16°)
OKLaboklab(51.53% 0.0352 -0.1818)
OKLCHoklch(51.53% 0.185 281)
XYZxyz(18.1749, 12.4651, 59.1941)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51CD #C4CD51
analogous
#5186CD #5A51CD #9851CD
triadic
#5A51CD #CD5A51 #51CD5A
tetradic
#5A51CD #CD5186 #C4CD51 #51CD98
square
#5A51CD #CD5186 #C4CD51 #51CD98
split-complementary
#5A51CD #CD9851 #86CD51
monochromatic
#2B257F #3B32AF #5A51CD #8781DB #B4B0E8

Accessibility & contrast

On white

6.01
#5A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51CD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51CD#FFFFFF#000000##FFFFFF
##5A51CD1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#1E6F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a51cd;
/* rgb */ color: rgb(90, 81, 205);
/* oklch */ color: oklch(51.5% 0.185 281.0);
Tailwind
colors: {
  custom: {
    50: '#9382dd',
    500: '#5a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a51cd;
$custom-light: #9382dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51cd",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 244.355,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51533,
    "c": 0.18519,
    "h": 281
  },
  "luminance": 0.12466
}

Semantic roles & 50–950 ramp

primary
#5A51CD
secondary
#D3D7A3
accent
#DF49D4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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