#5940CD#5940CD

#5940CD is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.206 H 283.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5940CD
RGBrgb(89, 64, 205)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 69%, 80%)
CMYKcmyk(56.6%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.19, 47.95, -69.45)
CIE-LCHlch(38.19, 84.39, 304.62°)
OKLaboklab(48.79% 0.0492 -0.1998)
OKLCHoklch(48.79% 0.206 283.8)
XYZxyz(16.9693, 10.1974, 58.8199)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940CD #B4CD40
analogous
#406ECD #5940CD #9F40CD
triadic
#5940CD #CD5940 #40CD59
tetradic
#5940CD #CD406E #B4CD40 #40CD9F
square
#5940CD #CD406E #B4CD40 #40CD9F
split-complementary
#5940CD #CD9F40 #6ECD40
monochromatic
#2E1E74 #412BA5 #5940CD #8371DA #ADA1E6

Accessibility & contrast

On white

6.91
#5940CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5940CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940CD
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940CD#FFFFFF#000000##FFFFFF
##5940CD1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#1D6582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5940cd;
/* rgb */ color: rgb(89, 64, 205);
/* oklch */ color: oklch(48.8% 0.206 283.8);
Tailwind
colors: {
  custom: {
    50: '#9377dd',
    500: '#5940cd',
    950: '#000000',
  },
}
SCSS
$custom: #5940cd;
$custom-light: #9377dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5940cd",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 250.638,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48791,
    "c": 0.20582,
    "h": 283.8
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#5940CD
secondary
#C8D396
accent
#E246C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5940CD

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

Preview Lab → · Contrast checker → · Palette generator →

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