#5A50CF#5A50CF

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

Color values

HEX#5A50CF
RGBrgb(90, 80, 207)
HSLhsl(245, 57%, 56%)
HSVhsv(245, 61%, 81%)
CMYKcmyk(56.5%, 61.4%, 0%, 18.8%)
CIE-LABlab(41.87, 39.52, -64.60)
CIE-LCHlch(41.87, 75.73, 301.45°)
OKLaboklab(51.52% 0.0361 -0.1856)
OKLCHoklch(51.52% 0.189 281)
XYZxyz(18.3441, 12.4148, 60.4490)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A50CF #C5CF50
analogous
#5086CF #5A50CF #9A50CF
triadic
#5A50CF #CF5A50 #50CF5A
tetradic
#5A50CF #CF5086 #C5CF50 #50CF9A
square
#5A50CF #CF5086 #C5CF50 #50CF9A
split-complementary
#5A50CF #CF9A50 #86CF50
monochromatic
#2B2381 #3B31B1 #5A50CF #8780DC #B5B0E9

Accessibility & contrast

On white

6.03
#5A50CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A50CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A50CF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A50CF#FFFFFF#000000##FFFFFF
##5A50CF1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#1B6F88
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a50cf;
/* rgb */ color: rgb(90, 80, 207);
/* oklch */ color: oklch(51.5% 0.189 281.0);
Tailwind
colors: {
  custom: {
    50: '#9382df',
    500: '#5a50cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a50cf;
$custom-light: #9382df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a50cf",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 207
  },
  "hsl": {
    "h": 244.724,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51523,
    "c": 0.18905,
    "h": 281
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#5A50CF
secondary
#D3D8A3
accent
#E048D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A50CF

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

Preview Lab → · Contrast checker → · Palette generator →

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