#5A50CA#5A50CA

#5A50CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.183 H 281.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5A50CA
RGBrgb(90, 80, 202)
HSLhsl(245, 54%, 55%)
HSVhsv(245, 60%, 79%)
CMYKcmyk(55.4%, 60.4%, 0%, 20.8%)
CIE-LABlab(41.49, 37.95, -62.33)
CIE-LCHlch(41.49, 72.97, 301.33°)
OKLaboklab(51.13% 0.0363 -0.1789)
OKLCHoklch(51.13% 0.183 281.5)
XYZxyz(17.7425, 12.1741, 57.2806)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A50CA #C0CA50
analogous
#5083CA #5A50CA #9750CA
triadic
#5A50CA #CA5A50 #50CA5A
tetradic
#5A50CA #CA5083 #C0CA50 #50CA97
square
#5A50CA #CA5083 #C0CA50 #50CA97
split-complementary
#5A50CA #CA9750 #83CA50
monochromatic
#2C257A #3D33A9 #5A50CA #867FD8 #B3AEE6

Accessibility & contrast

On white

6.11
#5A50CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A50CA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A50CA#FFFFFF#000000##FFFFFF
##5A50CA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#236D85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a50ca;
/* rgb */ color: rgb(90, 80, 202);
/* oklch */ color: oklch(51.1% 0.183 281.5);
Tailwind
colors: {
  custom: {
    50: '#9281db',
    500: '#5a50ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a50ca;
$custom-light: #9281db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a50ca",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 202
  },
  "hsl": {
    "h": 244.918,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.18254,
    "h": 281.5
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#5A50CA
secondary
#D0D4A1
accent
#DD4BD1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A50CA

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

Preview Lab → · Contrast checker → · Palette generator →

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