#6540CD#6540CD

#6540CD is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.9% C 0.205 H 288.7°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6540CD
RGBrgb(101, 64, 205)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 69%, 80%)
CMYKcmyk(50.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.31, 49.87, -67.58)
CIE-LCHlch(39.31, 83.99, 306.43°)
OKLaboklab(49.86% 0.0658 -0.194)
OKLCHoklch(49.86% 0.205 288.7)
XYZxyz(18.2165, 10.8404, 58.8783)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CD #A8CD40
analogous
#4061CD #6540CD #AC40CD
triadic
#6540CD #CD6540 #40CD65
tetradic
#6540CD #CD4061 #A8CD40 #40CDAC
square
#6540CD #CD4061 #A8CD40 #40CDAC
split-complementary
#6540CD #CDAC40 #61CD40
monochromatic
#351E74 #4B2BA5 #6540CD #8C71DA #B3A1E6

Accessibility & contrast

On white

6.63
#6540CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6540CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CD
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CD#FFFFFF#000000##FFFFFF
##6540CD1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6540cd;
/* rgb */ color: rgb(101, 64, 205);
/* oklch */ color: oklch(49.9% 0.205 288.7);
Tailwind
colors: {
  custom: {
    50: '#9a78dd',
    500: '#6540cd',
    950: '#000000',
  },
}
SCSS
$custom: #6540cd;
$custom-light: #9a78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6540cd",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 255.745,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.20485,
    "h": 288.7
  },
  "luminance": 0.10841
}

Semantic roles & 50–950 ramp

primary
#6540CD
secondary
#C3D396
accent
#E246B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540CD

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

Preview Lab → · Contrast checker → · Palette generator →

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