#6540AE#6540AE

#6540AE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.167 H 294.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#6540AE
RGBrgb(101, 64, 174)
HSLhsl(260, 46%, 47%)
HSVhsv(260, 63%, 68%)
CMYKcmyk(42%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.91, 41.17, -53.30)
CIE-LCHlch(36.91, 67.35, 307.68°)
OKLaboklab(47.38% 0.0698 -0.152)
OKLCHoklch(47.38% 0.167 294.7)
XYZxyz(14.8382, 9.4891, 41.0860)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AE #89AE40
analogous
#4052AE #6540AE #9C40AE
triadic
#6540AE #AE6540 #40AE65
tetradic
#6540AE #AE4052 #89AE40 #40AE9C
square
#6540AE #AE4052 #89AE40 #40AE9C
split-complementary
#6540AE #AE9C40 #52AE40
monochromatic
#311F55 #4B3081 #6540AE #8665C6 #A992D7

Accessibility & contrast

On white

7.25
#6540AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6540AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540AE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540AE#FFFFFF#000000##FFFFFF
##6540AE1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#525971
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6540ae;
/* rgb */ color: rgb(101, 64, 174);
/* oklch */ color: oklch(47.4% 0.167 294.7);
Tailwind
colors: {
  custom: {
    50: '#9677c7',
    500: '#6540ae',
    950: '#000000',
  },
}
SCSS
$custom: #6540ae;
$custom-light: #9677c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ae",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 260.182,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47378,
    "c": 0.16727,
    "h": 294.7
  },
  "luminance": 0.09489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6540AE

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

Preview Lab → · Contrast checker → · Palette generator →

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