#6540D9#6540D9

#6540D9 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.9% C 0.219 H 286.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6540D9
RGBrgb(101, 64, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 71%, 85%)
CMYKcmyk(53.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(40.32, 53.27, -72.85)
CIE-LCHlch(40.32, 90.24, 306.17°)
OKLaboklab(50.89% 0.0636 -0.2094)
OKLCHoklch(50.89% 0.219 286.9)
XYZxyz(19.7209, 11.4422, 66.8016)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D9 #B4D940
analogous
#4067D9 #6540D9 #B240D9
triadic
#6540D9 #D96540 #40D965
tetradic
#6540D9 #D94067 #B4D940 #40D9B2
square
#6540D9 #D94067 #B4D940 #40D9B2
split-complementary
#6540D9 #D9B240 #67D940
monochromatic
#341A84 #4824B7 #6540D9 #8E73E3 #B7A6ED

Accessibility & contrast

On white

6.39
#6540D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6540D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D9
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D9#FFFFFF#000000##FFFFFF
##6540D91.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#356988
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6540d9;
/* rgb */ color: rgb(101, 64, 217);
/* oklch */ color: oklch(50.9% 0.219 286.9);
Tailwind
colors: {
  custom: {
    50: '#9c78e6',
    500: '#6540d9',
    950: '#000000',
  },
}
SCSS
$custom: #6540d9;
$custom-light: #9c78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d9",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 254.51,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50885,
    "c": 0.2189,
    "h": 286.9
  },
  "luminance": 0.11443
}

Semantic roles & 50–950 ramp

primary
#6540D9
secondary
#CBDA9A
accent
#EA3EC0
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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