#5A56CD#5A56CD

#5A56CD is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.4% C 0.179 H 279.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A56CD
RGBrgb(90, 86, 205)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(56.1%, 58%, 0%, 19.6%)
CIE-LABlab(43.12, 35.27, -61.42)
CIE-LCHlch(43.12, 70.83, 299.86°)
OKLaboklab(52.4% 0.0303 -0.1762)
OKLCHoklch(52.4% 0.179 279.8)
XYZxyz(18.5602, 13.2358, 59.3225)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56CD #C9CD56
analogous
#568ECD #5A56CD #9656CD
triadic
#5A56CD #CD5A56 #56CD5A
tetradic
#5A56CD #CD568E #C9CD56 #56CD96
square
#5A56CD #CD568E #C9CD56 #56CD96
split-complementary
#5A56CD #CD9656 #8ECD56
monochromatic
#2A2682 #3934B1 #5A56CD #8885DB #B6B4E9

Accessibility & contrast

On white

5.76
#5A56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5A56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56CD
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56CD#FFFFFF#000000##FFFFFF
##5A56CD1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#1D7289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a56cd;
/* rgb */ color: rgb(90, 86, 205);
/* oklch */ color: oklch(52.4% 0.179 279.8);
Tailwind
colors: {
  custom: {
    50: '#9286dd',
    500: '#5a56cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a56cd;
$custom-light: #9286dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56cd",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 242.017,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52396,
    "c": 0.17878,
    "h": 279.8
  },
  "luminance": 0.13237
}

Semantic roles & 50–950 ramp

primary
#5A56CD
secondary
#D6D8A7
accent
#DE4AD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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