#5940BD#5940BD

#5940BD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.186 H 286.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5940BD
RGBrgb(89, 64, 189)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 66%, 74%)
CMYKcmyk(52.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.86, 43.16, -62.29)
CIE-LCHlch(36.86, 75.78, 304.72°)
OKLaboklab(47.42% 0.0516 -0.1788)
OKLCHoklch(47.42% 0.186 286.1)
XYZxyz(15.1358, 9.4640, 49.1634)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940BD #A4BD40
analogous
#4066BD #5940BD #9840BD
triadic
#5940BD #BD5940 #40BD59
tetradic
#5940BD #BD4066 #A4BD40 #40BD98
square
#5940BD #BD4066 #A4BD40 #40BD98
split-complementary
#5940BD #BD9840 #66BD40
monochromatic
#2E2162 #43318F #5940BD #806DCD #A89ADD

Accessibility & contrast

On white

7.26
#5940BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5940BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5940BD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940BD#FFFFFF#000000##FFFFFF
##5940BD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#315F79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5940bd;
/* rgb */ color: rgb(89, 64, 189);
/* oklch */ color: oklch(47.4% 0.186 286.1);
Tailwind
colors: {
  custom: {
    50: '#9176d2',
    500: '#5940bd',
    950: '#000000',
  },
}
SCSS
$custom: #5940bd;
$custom-light: #9176d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5940bd",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 252,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47421,
    "c": 0.18614,
    "h": 286.1
  },
  "luminance": 0.09465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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