#5940AD#5940AD

#5940AD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.166 H 288.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5940AD
RGBrgb(89, 64, 173)
HSLhsl(254, 46%, 46%)
HSVhsv(254, 63%, 68%)
CMYKcmyk(48.6%, 63%, 0%, 32.2%)
CIE-LABlab(35.61, 38.38, -54.87)
CIE-LCHlch(35.61, 66.96, 304.97°)
OKLaboklab(46.12% 0.0533 -0.157)
OKLCHoklch(46.12% 0.166 288.7)
XYZxyz(13.4939, 8.8072, 40.5160)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940AD #94AD40
analogous
#405EAD #5940AD #9040AD
triadic
#5940AD #AD5940 #40AD59
tetradic
#5940AD #AD405E #94AD40 #40AD90
square
#5940AD #AD405E #94AD40 #40AD90
split-complementary
#5940AD #AD9040 #5EAD40
monochromatic
#2B1F54 #422F80 #5940AD #7B64C6 #A191D6

Accessibility & contrast

On white

7.60
#5940AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5940AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5940AD
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940AD#FFFFFF#000000##FFFFFF
##5940AD1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#3D5A70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5940ad;
/* rgb */ color: rgb(89, 64, 173);
/* oklch */ color: oklch(46.1% 0.166 288.7);
Tailwind
colors: {
  custom: {
    50: '#8f76c6',
    500: '#5940ad',
    950: '#000000',
  },
}
SCSS
$custom: #5940ad;
$custom-light: #8f76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5940ad",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 253.761,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46121,
    "c": 0.16581,
    "h": 288.7
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#5940AD
secondary
#B4C287
accent
#D652B7
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5940AD

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

Preview Lab → · Contrast checker → · Palette generator →

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