#5940CC#5940CC

#5940CC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.7% C 0.205 H 284.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5940CC
RGBrgb(89, 64, 204)
HSLhsl(251, 58%, 53%)
HSVhsv(251, 69%, 80%)
CMYKcmyk(56.4%, 68.6%, 0%, 20%)
CIE-LABlab(38.11, 47.65, -69.01)
CIE-LCHlch(38.11, 83.86, 304.62°)
OKLaboklab(48.7% 0.0494 -0.1986)
OKLCHoklch(48.7% 0.205 284)
XYZxyz(16.8490, 10.1492, 58.1862)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940CC #B3CC40
analogous
#406DCC #5940CC #9F40CC
triadic
#5940CC #CC5940 #40CC59
tetradic
#5940CC #CC406D #B3CC40 #40CC9F
square
#5940CC #CC406D #B3CC40 #40CC9F
split-complementary
#5940CC #CC9F40 #6DCC40
monochromatic
#2E1F73 #412CA3 #5940CC #8370D9 #ADA1E6

Accessibility & contrast

On white

6.93
#5940CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5940CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940CC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940CC#FFFFFF#000000##FFFFFF
##5940CC1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#1F6581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5940cc;
/* rgb */ color: rgb(89, 64, 204);
/* oklch */ color: oklch(48.7% 0.205 284.0);
Tailwind
colors: {
  custom: {
    50: '#9377dd',
    500: '#5940cc',
    950: '#000000',
  },
}
SCSS
$custom: #5940cc;
$custom-light: #9377dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5940cc",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 250.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48703,
    "c": 0.20461,
    "h": 284
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#5940CC
secondary
#C7D295
accent
#E147C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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