#6540D5#6540D5

#6540D5 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.214 H 287.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6540D5
RGBrgb(101, 64, 213)
HSLhsl(255, 64%, 54%)
HSVhsv(255, 70%, 84%)
CMYKcmyk(52.6%, 70%, 0%, 16.5%)
CIE-LABlab(39.98, 52.13, -71.11)
CIE-LCHlch(39.98, 88.17, 306.25°)
OKLaboklab(50.54% 0.0644 -0.2043)
OKLCHoklch(50.54% 0.214 287.5)
XYZxyz(19.2069, 11.2366, 64.0947)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D5 #B0D540
analogous
#4066D5 #6540D5 #AF40D5
triadic
#6540D5 #D56540 #40D565
tetradic
#6540D5 #D54066 #B0D540 #40D5AF
square
#6540D5 #D54066 #B0D540 #40D5AF
split-complementary
#6540D5 #D5AF40 #66D540
monochromatic
#341C7F #4927B1 #6540D5 #8D72E0 #B6A4EB

Accessibility & contrast

On white

6.47
#6540D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6540D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D5
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D5#FFFFFF#000000##FFFFFF
##6540D51.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#396786
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6540d5;
/* rgb */ color: rgb(101, 64, 213);
/* oklch */ color: oklch(50.5% 0.214 287.5);
Tailwind
colors: {
  custom: {
    50: '#9b78e3',
    500: '#6540d5',
    950: '#000000',
  },
}
SCSS
$custom: #6540d5;
$custom-light: #9b78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d5",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 254.899,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50539,
    "c": 0.21425,
    "h": 287.5
  },
  "luminance": 0.11238
}

Semantic roles & 50–950 ramp

primary
#6540D5
secondary
#C8D899
accent
#E741BE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6540D5

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

Preview Lab → · Contrast checker → · Palette generator →

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