#6540B7#6540B7

#6540B7 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.178 H 292.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#6540B7
RGBrgb(101, 64, 183)
HSLhsl(259, 48%, 48%)
HSVhsv(259, 65%, 72%)
CMYKcmyk(44.8%, 65%, 0%, 28.2%)
CIE-LABlab(37.58, 43.68, -57.55)
CIE-LCHlch(37.58, 72.25, 307.20°)
OKLaboklab(48.07% 0.0689 -0.1645)
OKLCHoklch(48.07% 0.178 292.7)
XYZxyz(15.7451, 9.8519, 45.8626)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540B7 #92B740
analogous
#4057B7 #6540B7 #A040B7
triadic
#6540B7 #B76540 #40B765
tetradic
#6540B7 #B74057 #92B740 #40B7A0
square
#6540B7 #B74057 #92B740 #40B7A0
split-complementary
#6540B7 #B7A040 #57B740
monochromatic
#33205C #4C308A #6540B7 #8869CB #AC97DB

Accessibility & contrast

On white

7.07
#6540B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6540B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6540B7#FFFFFF#000000##FFFFFF
##6540B71.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#4D5C76
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6540b7;
/* rgb */ color: rgb(101, 64, 183);
/* oklch */ color: oklch(48.1% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#9777cd',
    500: '#6540b7',
    950: '#000000',
  },
}
SCSS
$custom: #6540b7;
$custom-light: #9777cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6540b7",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 258.655,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4807,
    "c": 0.17838,
    "h": 292.7
  },
  "luminance": 0.09852
}

Semantic roles & 50–950 ramp

primary
#6540B7
secondary
#B4C68D
accent
#D850AE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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