#5A50CC#5A50CC

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

Color values

HEX#5A50CC
RGBrgb(90, 80, 204)
HSLhsl(245, 55%, 56%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(55.9%, 60.8%, 0%, 20%)
CIE-LABlab(41.64, 38.58, -63.24)
CIE-LCHlch(41.64, 74.08, 301.38°)
OKLaboklab(51.29% 0.0362 -0.1816)
OKLCHoklch(51.29% 0.185 281.3)
XYZxyz(17.9808, 12.2695, 58.5358)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A50CC #C2CC50
analogous
#5084CC #5A50CC #9850CC
triadic
#5A50CC #CC5A50 #50CC5A
tetradic
#5A50CC #CC5084 #C2CC50 #50CC98
square
#5A50CC #CC5084 #C2CC50 #50CC98
split-complementary
#5A50CC #CC9850 #84CC50
monochromatic
#2C247D #3C32AD #5A50CC #877FDA #B3AFE8

Accessibility & contrast

On white

6.08
#5A50CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A50CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A50CC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A50CC#FFFFFF#000000##FFFFFF
##5A50CC1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#206E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a50cc;
/* rgb */ color: rgb(90, 80, 204);
/* oklch */ color: oklch(51.3% 0.185 281.3);
Tailwind
colors: {
  custom: {
    50: '#9381dc',
    500: '#5a50cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a50cc;
$custom-light: #9381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a50cc",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 204
  },
  "hsl": {
    "h": 244.839,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51286,
    "c": 0.18515,
    "h": 281.3
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A50CC

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

Preview Lab → · Contrast checker → · Palette generator →

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