#5A50CD#5A50CD

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

Color values

HEX#5A50CD
RGBrgb(90, 80, 205)
HSLhsl(245, 56%, 56%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(56.1%, 61%, 0%, 19.6%)
CIE-LABlab(41.72, 38.89, -63.70)
CIE-LCHlch(41.72, 74.63, 301.41°)
OKLaboklab(51.37% 0.0362 -0.1829)
OKLCHoklch(51.37% 0.186 281.2)
XYZxyz(18.1011, 12.3176, 59.1695)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A50CD #C3CD50
analogous
#5084CD #5A50CD #9850CD
triadic
#5A50CD #CD5A50 #50CD5A
tetradic
#5A50CD #CD5084 #C3CD50 #50CD98
square
#5A50CD #CD5084 #C3CD50 #50CD98
split-complementary
#5A50CD #CD9850 #84CD50
monochromatic
#2B247E #3C32AE #5A50CD #8780DB #B4AFE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A50CD#FFFFFF#000000##FFFFFF
##5A50CD1.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)
#0067D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#1E6E87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a50cd;
/* rgb */ color: rgb(90, 80, 205);
/* oklch */ color: oklch(51.4% 0.186 281.2);
Tailwind
colors: {
  custom: {
    50: '#9381dd',
    500: '#5a50cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a50cd;
$custom-light: #9381dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a50cd",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 205
  },
  "hsl": {
    "h": 244.8,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51365,
    "c": 0.18645,
    "h": 281.2
  },
  "luminance": 0.12319
}

Semantic roles & 50–950 ramp

primary
#5A50CD
secondary
#D2D6A2
accent
#DF49D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A50CD

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

Preview Lab → · Contrast checker → · Palette generator →

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