#6540BF#6540BF

#6540BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.188 H 291.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6540BF
RGBrgb(101, 64, 191)
HSLhsl(257, 50%, 50%)
HSVhsv(257, 66%, 75%)
CMYKcmyk(47.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.19, 45.92, -61.25)
CIE-LCHlch(38.19, 76.55, 306.86°)
OKLaboklab(48.71% 0.068 -0.1754)
OKLCHoklch(48.71% 0.188 291.2)
XYZxyz(16.6015, 10.1945, 50.3731)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540BF #9ABF40
analogous
#405BBF #6540BF #A440BF
triadic
#6540BF #BF6540 #40BF65
tetradic
#6540BF #BF405B #9ABF40 #40BFA4
square
#6540BF #BF405B #9ABF40 #40BFA4
split-complementary
#6540BF #BFA440 #5BBF40
monochromatic
#352163 #4D3191 #6540BF #8A6ECE #AF9CDE

Accessibility & contrast

On white

6.91
#6540BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6540BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540BF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540BF#FFFFFF#000000##FFFFFF
##6540BF1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#495F7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6540bf;
/* rgb */ color: rgb(101, 64, 191);
/* oklch */ color: oklch(48.7% 0.188 291.2);
Tailwind
colors: {
  custom: {
    50: '#9877d3',
    500: '#6540bf',
    950: '#000000',
  },
}
SCSS
$custom: #6540bf;
$custom-light: #9877d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6540bf",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 257.48,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48705,
    "c": 0.18811,
    "h": 291.2
  },
  "luminance": 0.10195
}

Semantic roles & 50–950 ramp

primary
#6540BF
secondary
#B9CA91
accent
#D94EB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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