#6540A5#6540A5

#6540A5 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.156 H 296.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6540A5
RGBrgb(101, 64, 165)
HSLhsl(262, 44%, 45%)
HSVhsv(262, 61%, 65%)
CMYKcmyk(38.8%, 61.2%, 0%, 35.3%)
CIE-LABlab(36.27, 38.69, -48.96)
CIE-LCHlch(36.27, 62.40, 308.31°)
OKLaboklab(46.71% 0.0703 -0.1393)
OKLCHoklch(46.71% 0.156 296.8)
XYZxyz(13.9900, 9.1499, 36.6190)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540A5 #80A540
analogous
#404EA5 #6540A5 #9740A5
triadic
#6540A5 #A56540 #40A565
tetradic
#6540A5 #A5404E #80A540 #40A597
square
#6540A5 #A5404E #80A540 #40A597
split-complementary
#6540A5 #A59740 #4EA540
monochromatic
#2F1E4D #4A2F79 #6540A5 #8461C2 #A68DD3

Accessibility & contrast

On white

7.42
#6540A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6540A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6540A5#FFFFFF#000000##FFFFFF
##6540A51.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#1254A3
Tritanopia (blue-blind)
#56566C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6540a5;
/* rgb */ color: rgb(101, 64, 165);
/* oklch */ color: oklch(46.7% 0.156 296.8);
Tailwind
colors: {
  custom: {
    50: '#9576c0',
    500: '#6540a5',
    950: '#000000',
  },
}
SCSS
$custom: #6540a5;
$custom-light: #9576c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6540a5",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 261.98,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46711,
    "c": 0.15601,
    "h": 296.8
  },
  "luminance": 0.0915
}

Semantic roles & 50–950 ramp

primary
#6540A5
secondary
#A8BE83
accent
#D454A5
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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