#5940BC#5940BC

#5940BC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.185 H 286.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5940BC
RGBrgb(89, 64, 188)
HSLhsl(252, 49%, 49%)
HSVhsv(252, 66%, 74%)
CMYKcmyk(52.7%, 66%, 0%, 26.3%)
CIE-LABlab(36.78, 42.86, -61.84)
CIE-LCHlch(36.78, 75.24, 304.73°)
OKLaboklab(47.34% 0.0517 -0.1775)
OKLCHoklch(47.34% 0.185 286.2)
XYZxyz(15.0276, 9.4207, 48.5937)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940BC #A3BC40
analogous
#4065BC #5940BC #9740BC
triadic
#5940BC #BC5940 #40BC59
tetradic
#5940BC #BC4065 #A3BC40 #40BC97
square
#5940BC #BC4065 #A3BC40 #40BC97
split-complementary
#5940BC #BC9740 #65BC40
monochromatic
#2E2161 #43308E #5940BC #806CCD #A79ADD

Accessibility & contrast

On white

7.28
#5940BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5940BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5940BC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940BC#FFFFFF#000000##FFFFFF
##5940BC1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#325F78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5940bc;
/* rgb */ color: rgb(89, 64, 188);
/* oklch */ color: oklch(47.3% 0.185 286.2);
Tailwind
colors: {
  custom: {
    50: '#9176d1',
    500: '#5940bc',
    950: '#000000',
  },
}
SCSS
$custom: #5940bc;
$custom-light: #9176d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5940bc",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 252.097,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47338,
    "c": 0.18489,
    "h": 286.2
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#5940BC
secondary
#BDC98F
accent
#D94FBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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