#5956CD#5956CD

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

Color values

HEX#5956CD
RGBrgb(89, 86, 205)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(56.6%, 58%, 0%, 19.6%)
CIE-LABlab(43.04, 35.08, -61.55)
CIE-LCHlch(43.04, 70.85, 299.68°)
OKLaboklab(52.32% 0.0291 -0.1766)
OKLCHoklch(52.32% 0.179 279.4)
XYZxyz(18.4636, 13.1860, 59.3180)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5956CD #CACD56
analogous
#568ECD #5956CD #9556CD
triadic
#5956CD #CD5956 #56CD59
tetradic
#5956CD #CD568E #CACD56 #56CD95
square
#5956CD #CD568E #CACD56 #56CD95
split-complementary
#5956CD #CD9556 #8ECD56
monochromatic
#292682 #3834B1 #5956CD #8785DB #B6B4E9

Accessibility & contrast

On white

5.77
#5956CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5956CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5956CD
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5956CD#FFFFFF#000000##FFFFFF
##5956CD1.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)
#006AD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#187289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5956cd;
/* rgb */ color: rgb(89, 86, 205);
/* oklch */ color: oklch(52.3% 0.179 279.4);
Tailwind
colors: {
  custom: {
    50: '#9286dd',
    500: '#5956cd',
    950: '#000000',
  },
}
SCSS
$custom: #5956cd;
$custom-light: #9286dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5956cd",
  "rgb": {
    "r": 89,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 241.513,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52322,
    "c": 0.17896,
    "h": 279.4
  },
  "luminance": 0.13187
}

Semantic roles & 50–950 ramp

primary
#5956CD
secondary
#D6D8A7
accent
#DE4ADA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5956CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5956CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva