#5940CE#5940CE

#5940CE is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.207 H 283.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5940CE
RGBrgb(89, 64, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 69%, 81%)
CMYKcmyk(56.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.28, 48.25, -69.89)
CIE-LCHlch(38.28, 84.92, 304.62°)
OKLaboklab(48.88% 0.0491 -0.2011)
OKLCHoklch(48.88% 0.207 283.7)
XYZxyz(17.0904, 10.2458, 59.4576)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940CE #B5CE40
analogous
#406ECE #5940CE #A040CE
triadic
#5940CE #CE5940 #40CE59
tetradic
#5940CE #CE406E #B5CE40 #40CEA0
square
#5940CE #CE406E #B5CE40 #40CEA0
split-complementary
#5940CE #CEA040 #6ECE40
monochromatic
#2E1E75 #402BA6 #5940CE #8371DA #AEA1E7

Accessibility & contrast

On white

6.89
#5940CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5940CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940CE
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940CE#FFFFFF#000000##FFFFFF
##5940CE1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#1B6582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5940ce;
/* rgb */ color: rgb(89, 64, 206);
/* oklch */ color: oklch(48.9% 0.207 283.7);
Tailwind
colors: {
  custom: {
    50: '#9477de',
    500: '#5940ce',
    950: '#000000',
  },
}
SCSS
$custom: #5940ce;
$custom-light: #9477de;
$custom-dark: #000000;
JSON
{
  "hex": "#5940ce",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 250.563,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.20704,
    "h": 283.7
  },
  "luminance": 0.10247
}

Semantic roles & 50–950 ramp

primary
#5940CE
secondary
#C9D496
accent
#E245C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5940CE

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

Preview Lab → · Contrast checker → · Palette generator →

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