#6540AA#6540AA

#6540AA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.162 H 295.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6540AA
RGBrgb(101, 64, 170)
HSLhsl(261, 45%, 46%)
HSVhsv(261, 62%, 67%)
CMYKcmyk(40.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(36.62, 40.06, -51.38)
CIE-LCHlch(36.62, 65.16, 307.94°)
OKLaboklab(47.08% 0.0701 -0.1464)
OKLCHoklch(47.08% 0.162 295.6)
XYZxyz(14.4540, 9.3355, 39.0628)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AA #85AA40
analogous
#4050AA #6540AA #9A40AA
triadic
#6540AA #AA6540 #40AA65
tetradic
#6540AA #AA4050 #85AA40 #40AA9A
square
#6540AA #AA4050 #85AA40 #40AA9A
split-complementary
#6540AA #AA9A40 #50AA40
monochromatic
#301F51 #4B2F7E #6540AA #8563C4 #A88FD5

Accessibility & contrast

On white

7.32
#6540AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6540AA#FFFFFF#000000##FFFFFF
##6540AA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0155A8
Tritanopia (blue-blind)
#54586F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6540aa;
/* rgb */ color: rgb(101, 64, 170);
/* oklch */ color: oklch(47.1% 0.162 295.6);
Tailwind
colors: {
  custom: {
    50: '#9677c4',
    500: '#6540aa',
    950: '#000000',
  },
}
SCSS
$custom: #6540aa;
$custom-light: #9677c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6540aa",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 260.943,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47078,
    "c": 0.16228,
    "h": 295.6
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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