#6540BC#6540BC

#6540BC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.184 H 291.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#6540BC
RGBrgb(101, 64, 188)
HSLhsl(258, 49%, 49%)
HSVhsv(258, 66%, 74%)
CMYKcmyk(46.3%, 66%, 0%, 26.3%)
CIE-LABlab(37.96, 45.08, -59.87)
CIE-LCHlch(37.96, 74.94, 306.98°)
OKLaboklab(48.47% 0.0684 -0.1713)
OKLCHoklch(48.47% 0.184 291.7)
XYZxyz(16.2748, 10.0638, 48.6522)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540BC #97BC40
analogous
#4059BC #6540BC #A340BC
triadic
#6540BC #BC6540 #40BC65
tetradic
#6540BC #BC4059 #97BC40 #40BCA3
square
#6540BC #BC4059 #97BC40 #40BCA3
split-complementary
#6540BC #BCA340 #59BC40
monochromatic
#342161 #4C308E #6540BC #896CCD #AE9ADD

Accessibility & contrast

On white

6.97
#6540BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6540BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540BC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540BC#FFFFFF#000000##FFFFFF
##6540BC1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#4B5E78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6540bc;
/* rgb */ color: rgb(101, 64, 188);
/* oklch */ color: oklch(48.5% 0.184 291.7);
Tailwind
colors: {
  custom: {
    50: '#9877d1',
    500: '#6540bc',
    950: '#000000',
  },
}
SCSS
$custom: #6540bc;
$custom-light: #9877d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6540bc",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 257.903,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48465,
    "c": 0.18448,
    "h": 291.7
  },
  "luminance": 0.10064
}

Semantic roles & 50–950 ramp

primary
#6540BC
secondary
#B7C98F
accent
#D94FB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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