#5A50CB#5A50CB

#5A50CB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.2% C 0.184 H 281.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5A50CB
RGBrgb(90, 80, 203)
HSLhsl(245, 54%, 55%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(55.7%, 60.6%, 0%, 20.4%)
CIE-LABlab(41.57, 38.26, -62.79)
CIE-LCHlch(41.57, 73.53, 301.36°)
OKLaboklab(51.21% 0.0363 -0.1802)
OKLCHoklch(51.21% 0.184 281.4)
XYZxyz(17.8613, 12.2216, 57.9062)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A50CB #C1CB50
analogous
#5083CB #5A50CB #9750CB
triadic
#5A50CB #CB5A50 #50CB5A
tetradic
#5A50CB #CB5083 #C1CB50 #50CB97
square
#5A50CB #CB5083 #C1CB50 #50CB97
split-complementary
#5A50CB #CB9750 #83CB50
monochromatic
#2C257C #3D33AB #5A50CB #867FD9 #B3AEE7

Accessibility & contrast

On white

6.10
#5A50CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5A50CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A50CB
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A50CB#FFFFFF#000000##FFFFFF
##5A50CB1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#216E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a50cb;
/* rgb */ color: rgb(90, 80, 203);
/* oklch */ color: oklch(51.2% 0.184 281.4);
Tailwind
colors: {
  custom: {
    50: '#9381dc',
    500: '#5a50cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a50cb;
$custom-light: #9381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a50cb",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 203
  },
  "hsl": {
    "h": 244.878,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51207,
    "c": 0.18384,
    "h": 281.4
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#5A50CB
secondary
#D1D5A2
accent
#DE4AD2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A50CB

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

Preview Lab → · Contrast checker → · Palette generator →

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