#6540A3#6540A3

#6540A3 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.6% C 0.153 H 297.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6540A3
RGBrgb(101, 64, 163)
HSLhsl(262, 44%, 45%)
HSVhsv(262, 61%, 64%)
CMYKcmyk(38%, 60.7%, 0%, 36.1%)
CIE-LABlab(36.13, 38.14, -47.98)
CIE-LCHlch(36.13, 61.30, 308.48°)
OKLaboklab(46.57% 0.0704 -0.1364)
OKLCHoklch(46.57% 0.153 297.3)
XYZxyz(13.8094, 9.0776, 35.6678)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540A3 #7EA340
analogous
#404DA3 #6540A3 #9640A3
triadic
#6540A3 #A36540 #40A365
tetradic
#6540A3 #A3404D #7EA340 #40A396
square
#6540A3 #A3404D #7EA340 #40A396
split-complementary
#6540A3 #A39640 #4DA340
monochromatic
#2F1D4B #4A2F77 #6540A3 #8460C0 #A68CD2

Accessibility & contrast

On white

7.46
#6540A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6540A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6540A3#FFFFFF#000000##FFFFFF
##6540A31.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A6
Deuteranopia (green-blind)
#1754A1
Tritanopia (blue-blind)
#56556B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6540a3;
/* rgb */ color: rgb(101, 64, 163);
/* oklch */ color: oklch(46.6% 0.153 297.3);
Tailwind
colors: {
  custom: {
    50: '#9576bf',
    500: '#6540a3',
    950: '#000000',
  },
}
SCSS
$custom: #6540a3;
$custom-light: #9576bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6540a3",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 262.424,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46567,
    "c": 0.15349,
    "h": 297.3
  },
  "luminance": 0.09078
}

Semantic roles & 50–950 ramp

primary
#6540A3
secondary
#A7BD82
accent
#D354A4
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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