#6540CF#6540CF

#6540CF is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.0% C 0.207 H 288.4°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#6540CF
RGBrgb(101, 64, 207)
HSLhsl(256, 60%, 53%)
HSVhsv(256, 69%, 81%)
CMYKcmyk(51.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.48, 50.44, -68.47)
CIE-LCHlch(39.48, 85.04, 306.38°)
OKLaboklab(50.03% 0.0655 -0.1966)
OKLCHoklch(50.03% 0.207 288.4)
XYZxyz(18.4594, 10.9376, 60.1579)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CF #AACF40
analogous
#4063CF #6540CF #AC40CF
triadic
#6540CF #CF6540 #40CF65
tetradic
#6540CF #CF4063 #AACF40 #40CFAC
square
#6540CF #CF4063 #AACF40 #40CFAC
split-complementary
#6540CF #CFAC40 #63CF40
monochromatic
#351E77 #4B2AA8 #6540CF #8C71DB #B4A2E8

Accessibility & contrast

On white

6.59
#6540CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6540CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CF
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CF#FFFFFF#000000##FFFFFF
##6540CF1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#3E6583
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6540cf;
/* rgb */ color: rgb(101, 64, 207);
/* oklch */ color: oklch(50.0% 0.207 288.4);
Tailwind
colors: {
  custom: {
    50: '#9a78df',
    500: '#6540cf',
    950: '#000000',
  },
}
SCSS
$custom: #6540cf;
$custom-light: #9a78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6540cf",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 255.524,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.20721,
    "h": 288.4
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#6540CF
secondary
#C4D497
accent
#E345BA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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