#6540B9#6540B9

#6540B9 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.181 H 292.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6540B9
RGBrgb(101, 64, 185)
HSLhsl(258, 49%, 49%)
HSVhsv(258, 65%, 73%)
CMYKcmyk(45.4%, 65.4%, 0%, 27.5%)
CIE-LABlab(37.73, 44.24, -58.48)
CIE-LCHlch(37.73, 73.33, 307.10°)
OKLaboklab(48.23% 0.0687 -0.1673)
OKLCHoklch(48.23% 0.181 292.3)
XYZxyz(15.9548, 9.9358, 46.9667)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540B9 #94B940
analogous
#4058B9 #6540B9 #A240B9
triadic
#6540B9 #B96540 #40B965
tetradic
#6540B9 #B94058 #94B940 #40B9A2
square
#6540B9 #B94058 #94B940 #40B9A2
split-complementary
#6540B9 #B9A240 #58B940
monochromatic
#33215E #4C308C #6540B9 #886BCC #AD98DB

Accessibility & contrast

On white

7.03
#6540B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6540B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6540B9#FFFFFF#000000##FFFFFF
##6540B91.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#4C5D77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6540b9;
/* rgb */ color: rgb(101, 64, 185);
/* oklch */ color: oklch(48.2% 0.181 292.3);
Tailwind
colors: {
  custom: {
    50: '#9877cf',
    500: '#6540b9',
    950: '#000000',
  },
}
SCSS
$custom: #6540b9;
$custom-light: #9877cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6540b9",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 258.347,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48227,
    "c": 0.18082,
    "h": 292.3
  },
  "luminance": 0.09936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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