#6540AB#6540AB

#6540AB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.164 H 295.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6540AB
RGBrgb(101, 64, 171)
HSLhsl(261, 46%, 46%)
HSVhsv(261, 63%, 67%)
CMYKcmyk(40.9%, 62.6%, 0%, 32.9%)
CIE-LABlab(36.69, 40.34, -51.86)
CIE-LCHlch(36.69, 65.70, 307.87°)
OKLaboklab(47.15% 0.07 -0.1478)
OKLCHoklch(47.15% 0.164 295.3)
XYZxyz(14.5490, 9.3735, 39.5629)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AB #86AB40
analogous
#4050AB #6540AB #9A40AB
triadic
#6540AB #AB6540 #40AB65
tetradic
#6540AB #AB4050 #86AB40 #40AB9A
square
#6540AB #AB4050 #86AB40 #40AB9A
split-complementary
#6540AB #AB9A40 #50AB40
monochromatic
#301F52 #4B2F7E #6540AB #8563C5 #A890D5

Accessibility & contrast

On white

7.30
#6540AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6540AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540AB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540AB#FFFFFF#000000##FFFFFF
##6540AB1.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#53586F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6540ab;
/* rgb */ color: rgb(101, 64, 171);
/* oklch */ color: oklch(47.2% 0.164 295.3);
Tailwind
colors: {
  custom: {
    50: '#9677c5',
    500: '#6540ab',
    950: '#000000',
  },
}
SCSS
$custom: #6540ab;
$custom-light: #9677c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ab",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 260.748,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47153,
    "c": 0.16354,
    "h": 295.3
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#6540AB
secondary
#ACC186
accent
#D553A8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6540AB

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

Preview Lab → · Contrast checker → · Palette generator →

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