#5A56CC#5A56CC

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

Color values

HEX#5A56CC
RGBrgb(90, 86, 204)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(55.9%, 57.8%, 0%, 20%)
CIE-LABlab(43.04, 34.95, -60.96)
CIE-LCHlch(43.04, 70.27, 299.82°)
OKLaboklab(52.32% 0.0303 -0.1748)
OKLCHoklch(52.32% 0.177 279.8)
XYZxyz(18.4399, 13.1877, 58.6888)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56CC #C8CC56
analogous
#568DCC #5A56CC #9556CC
triadic
#5A56CC #CC5A56 #56CC5A
tetradic
#5A56CC #CC568D #C8CC56 #56CC95
square
#5A56CC #CC568D #C8CC56 #56CC95
split-complementary
#5A56CC #CC9556 #8DCC56
monochromatic
#2A2781 #3935B0 #5A56CC #8885DA #B6B4E8

Accessibility & contrast

On white

5.77
#5A56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5A56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56CC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56CC#FFFFFF#000000##FFFFFF
##5A56CC1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#1E7289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a56cc;
/* rgb */ color: rgb(90, 86, 204);
/* oklch */ color: oklch(52.3% 0.177 279.8);
Tailwind
colors: {
  custom: {
    50: '#9286dc',
    500: '#5a56cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a56cc;
$custom-light: #9286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56cc",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 242.034,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5232,
    "c": 0.17745,
    "h": 279.8
  },
  "luminance": 0.13189
}

Semantic roles & 50–950 ramp

primary
#5A56CC
secondary
#D5D7A7
accent
#DD4BD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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