#5940AA#5940AA

#5940AA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.9% C 0.162 H 289.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5940AA
RGBrgb(89, 64, 170)
HSLhsl(254, 45%, 46%)
HSVhsv(254, 62%, 67%)
CMYKcmyk(47.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(35.39, 37.49, -53.45)
CIE-LCHlch(35.39, 65.28, 305.05°)
OKLaboklab(45.89% 0.0535 -0.1529)
OKLCHoklch(45.89% 0.162 289.3)
XYZxyz(13.2068, 8.6924, 39.0043)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940AA #91AA40
analogous
#405CAA #5940AA #8E40AA
triadic
#5940AA #AA5940 #40AA59
tetradic
#5940AA #AA405C #91AA40 #40AA8E
square
#5940AA #AA405C #91AA40 #40AA8E
split-complementary
#5940AA #AA8E40 #5CAA40
monochromatic
#2A1F51 #422F7E #5940AA #7A63C4 #A08FD5

Accessibility & contrast

On white

7.67
#5940AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5940AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5940AA#FFFFFF#000000##FFFFFF
##5940AA1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#3F596F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5940aa;
/* rgb */ color: rgb(89, 64, 170);
/* oklch */ color: oklch(45.9% 0.162 289.3);
Tailwind
colors: {
  custom: {
    50: '#8e76c4',
    500: '#5940aa',
    950: '#000000',
  },
}
SCSS
$custom: #5940aa;
$custom-light: #8e76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5940aa",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 254.151,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.16193,
    "h": 289.3
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#5940AA
secondary
#B2C086
accent
#D553B6
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5940AA

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

Preview Lab → · Contrast checker → · Palette generator →

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