#6540D1#6540D1

#6540D1 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.210 H 288.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6540D1
RGBrgb(101, 64, 209)
HSLhsl(255, 61%, 54%)
HSVhsv(255, 69%, 82%)
CMYKcmyk(51.7%, 69.4%, 0%, 18%)
CIE-LABlab(39.64, 51.00, -69.35)
CIE-LCHlch(39.64, 86.08, 306.33°)
OKLaboklab(50.2% 0.0651 -0.1992)
OKLCHoklch(50.2% 0.21 288.1)
XYZxyz(18.7055, 11.0361, 61.4538)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D1 #ACD140
analogous
#4063D1 #6540D1 #AD40D1
triadic
#6540D1 #D16540 #40D165
tetradic
#6540D1 #D14063 #ACD140 #40D1AD
square
#6540D1 #D14063 #ACD140 #40D1AD
split-complementary
#6540D1 #D1AD40 #63D140
monochromatic
#351D79 #4A29AB #6540D1 #8D71DD #B5A3E9

Accessibility & contrast

On white

6.55
#6540D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6540D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D1
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D1#FFFFFF#000000##FFFFFF
##6540D11.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#3C6684
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6540d1;
/* rgb */ color: rgb(101, 64, 209);
/* oklch */ color: oklch(50.2% 0.210 288.1);
Tailwind
colors: {
  custom: {
    50: '#9b78e0',
    500: '#6540d1',
    950: '#000000',
  },
}
SCSS
$custom: #6540d1;
$custom-light: #9b78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d1",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 255.31,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50197,
    "c": 0.20956,
    "h": 288.1
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#6540D1
secondary
#C6D597
accent
#E444BB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540D1

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

Preview Lab → · Contrast checker → · Palette generator →

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