#6540C7#6540C7

#6540C7 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.198 H 289.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6540C7
RGBrgb(101, 64, 199)
HSLhsl(256, 55%, 52%)
HSVhsv(256, 68%, 78%)
CMYKcmyk(49.2%, 67.8%, 0%, 22%)
CIE-LABlab(38.82, 48.18, -64.89)
CIE-LCHlch(38.82, 80.82, 306.59°)
OKLaboklab(49.36% 0.0668 -0.1861)
OKLCHoklch(49.36% 0.198 289.7)
XYZxyz(17.5061, 10.5563, 55.1369)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540C7 #A2C740
analogous
#405FC7 #6540C7 #A840C7
triadic
#6540C7 #C76540 #40C765
tetradic
#6540C7 #C7405F #A2C740 #40C7A8
square
#6540C7 #C7405F #A2C740 #40C7A8
split-complementary
#6540C7 #C7A840 #5FC740
monochromatic
#35206D #4C2E9C #6540C7 #8B6FD5 #B19FE3

Accessibility & contrast

On white

6.75
#6540C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6540C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6540C7#FFFFFF#000000##FFFFFF
##6540C71.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#44627E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6540c7;
/* rgb */ color: rgb(101, 64, 199);
/* oklch */ color: oklch(49.4% 0.198 289.7);
Tailwind
colors: {
  custom: {
    50: '#9977d9',
    500: '#6540c7',
    950: '#000000',
  },
}
SCSS
$custom: #6540c7;
$custom-light: #9977d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6540c7",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 256.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.19772,
    "h": 289.7
  },
  "luminance": 0.10557
}

Semantic roles & 50–950 ramp

primary
#6540C7
secondary
#BFCF94
accent
#DE4AB5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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