#6540AC#6540AC

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

Color values

HEX#6540AC
RGBrgb(101, 64, 172)
HSLhsl(261, 46%, 46%)
HSVhsv(261, 63%, 67%)
CMYKcmyk(41.3%, 62.8%, 0%, 32.5%)
CIE-LABlab(36.77, 40.61, -52.34)
CIE-LCHlch(36.77, 66.25, 307.81°)
OKLaboklab(47.23% 0.0699 -0.1492)
OKLCHoklch(47.23% 0.165 295.1)
XYZxyz(14.6447, 9.4117, 40.0668)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AC #87AC40
analogous
#4051AC #6540AC #9B40AC
triadic
#6540AC #AC6540 #40AC65
tetradic
#6540AC #AC4051 #87AC40 #40AC9B
square
#6540AC #AC4051 #87AC40 #40AC9B
split-complementary
#6540AC #AC9B40 #51AC40
monochromatic
#311F53 #4B2F7F #6540AC #8564C5 #A891D6

Accessibility & contrast

On white

7.29
#6540AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6540AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540AC
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540AC#FFFFFF#000000##FFFFFF
##6540AC1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#535870
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6540ac;
/* rgb */ color: rgb(101, 64, 172);
/* oklch */ color: oklch(47.2% 0.165 295.1);
Tailwind
colors: {
  custom: {
    50: '#9677c5',
    500: '#6540ac',
    950: '#000000',
  },
}
SCSS
$custom: #6540ac;
$custom-light: #9677c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ac",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 260.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47228,
    "c": 0.16478,
    "h": 295.1
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#6540AC
secondary
#ADC187
accent
#D552A9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6540AC

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

Preview Lab → · Contrast checker → · Palette generator →

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