#6540D0#6540D0

#6540D0 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.208 H 288.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#6540D0
RGBrgb(101, 64, 208)
HSLhsl(255, 61%, 53%)
HSVhsv(255, 69%, 82%)
CMYKcmyk(51.4%, 69.2%, 0%, 18.4%)
CIE-LABlab(39.56, 50.72, -68.91)
CIE-LCHlch(39.56, 85.56, 306.36°)
OKLaboklab(50.11% 0.0653 -0.1979)
OKLCHoklch(50.11% 0.208 288.3)
XYZxyz(18.5821, 10.9867, 60.8038)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D0 #ABD040
analogous
#4063D0 #6540D0 #AD40D0
triadic
#6540D0 #D06540 #40D065
tetradic
#6540D0 #D04063 #ABD040 #40D0AD
square
#6540D0 #D04063 #ABD040 #40D0AD
split-complementary
#6540D0 #D0AD40 #63D040
monochromatic
#351E78 #4A2AA9 #6540D0 #8D71DC #B4A2E8

Accessibility & contrast

On white

6.57
#6540D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6540D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D0
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D0#FFFFFF#000000##FFFFFF
##6540D01.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D4
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#3D6583
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6540d0;
/* rgb */ color: rgb(101, 64, 208);
/* oklch */ color: oklch(50.1% 0.208 288.3);
Tailwind
colors: {
  custom: {
    50: '#9b78df',
    500: '#6540d0',
    950: '#000000',
  },
}
SCSS
$custom: #6540d0;
$custom-light: #9b78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d0",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 255.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50112,
    "c": 0.20839,
    "h": 288.3
  },
  "luminance": 0.10988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6540D0

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

Preview Lab → · Contrast checker → · Palette generator →

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