#6540AD#6540AD

#6540AD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.3% C 0.166 H 294.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6540AD
RGBrgb(101, 64, 173)
HSLhsl(260, 46%, 46%)
HSVhsv(260, 63%, 68%)
CMYKcmyk(41.6%, 63%, 0%, 32.2%)
CIE-LABlab(36.84, 40.89, -52.82)
CIE-LCHlch(36.84, 66.80, 307.74°)
OKLaboklab(47.3% 0.0699 -0.1506)
OKLCHoklch(47.3% 0.166 294.9)
XYZxyz(14.7410, 9.4503, 40.5745)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AD #88AD40
analogous
#4052AD #6540AD #9C40AD
triadic
#6540AD #AD6540 #40AD65
tetradic
#6540AD #AD4052 #88AD40 #40AD9C
square
#6540AD #AD4052 #88AD40 #40AD9C
split-complementary
#6540AD #AD9C40 #52AD40
monochromatic
#311F54 #4B2F80 #6540AD #8564C6 #A991D6

Accessibility & contrast

On white

7.27
#6540AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6540AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540AD
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540AD#FFFFFF#000000##FFFFFF
##6540AD1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#525970
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6540ad;
/* rgb */ color: rgb(101, 64, 173);
/* oklch */ color: oklch(47.3% 0.166 294.9);
Tailwind
colors: {
  custom: {
    50: '#9677c6',
    500: '#6540ad',
    950: '#000000',
  },
}
SCSS
$custom: #6540ad;
$custom-light: #9677c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ad",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 260.367,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.16603,
    "h": 294.9
  },
  "luminance": 0.09451
}

Semantic roles & 50–950 ramp

primary
#6540AD
secondary
#AEC287
accent
#D652A9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6540AD

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

Preview Lab → · Contrast checker → · Palette generator →

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