#6540CE#6540CE

#6540CE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.206 H 288.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6540CE
RGBrgb(101, 64, 206)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 69%, 81%)
CMYKcmyk(51%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.39, 50.15, -68.02)
CIE-LCHlch(39.39, 84.51, 306.40°)
OKLaboklab(49.94% 0.0657 -0.1953)
OKLCHoklch(49.94% 0.206 288.6)
XYZxyz(18.3376, 10.8889, 59.5161)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CE #A9CE40
analogous
#4062CE #6540CE #AC40CE
triadic
#6540CE #CE6540 #40CE65
tetradic
#6540CE #CE4062 #A9CE40 #40CEAC
square
#6540CE #CE4062 #A9CE40 #40CEAC
split-complementary
#6540CE #CEAC40 #62CE40
monochromatic
#351E75 #4B2BA6 #6540CE #8C71DA #B4A1E7

Accessibility & contrast

On white

6.61
#6540CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6540CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CE
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CE#FFFFFF#000000##FFFFFF
##6540CE1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#3F6482
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6540ce;
/* rgb */ color: rgb(101, 64, 206);
/* oklch */ color: oklch(49.9% 0.206 288.6);
Tailwind
colors: {
  custom: {
    50: '#9a78de',
    500: '#6540ce',
    950: '#000000',
  },
}
SCSS
$custom: #6540ce;
$custom-light: #9a78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ce",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 255.634,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49943,
    "c": 0.20603,
    "h": 288.6
  },
  "luminance": 0.1089
}

Semantic roles & 50–950 ramp

primary
#6540CE
secondary
#C4D496
accent
#E245B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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