#5A56CA#5A56CA

#5A56CA is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.2% C 0.175 H 280.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5A56CA
RGBrgb(90, 86, 202)
HSLhsl(242, 52%, 56%)
HSVhsv(242, 57%, 79%)
CMYKcmyk(55.4%, 57.4%, 0%, 20.8%)
CIE-LABlab(42.90, 34.31, -60.04)
CIE-LCHlch(42.90, 69.15, 299.75°)
OKLaboklab(52.17% 0.0303 -0.1721)
OKLCHoklch(52.17% 0.175 280)
XYZxyz(18.2016, 13.0923, 57.4336)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56CA #C6CA56
analogous
#568CCA #5A56CA #9456CA
triadic
#5A56CA #CA5A56 #56CA5A
tetradic
#5A56CA #CA568C #C6CA56 #56CA94
square
#5A56CA #CA568C #C6CA56 #56CA94
split-complementary
#5A56CA #CA9456 #8CCA56
monochromatic
#2B287E #3A36AD #5A56CA #8785D9 #B5B3E7

Accessibility & contrast

On white

5.80
#5A56CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5A56CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56CA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56CA#FFFFFF#000000##FFFFFF
##5A56CA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#227188
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a56ca;
/* rgb */ color: rgb(90, 86, 202);
/* oklch */ color: oklch(52.2% 0.175 280.0);
Tailwind
colors: {
  custom: {
    50: '#9286db',
    500: '#5a56ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a56ca;
$custom-light: #9286db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56ca",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 242.069,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52169,
    "c": 0.17477,
    "h": 280
  },
  "luminance": 0.13094
}

Semantic roles & 50–950 ramp

primary
#5A56CA
secondary
#D4D6A6
accent
#DC4CD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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