#6540C8#6540C8

#6540C8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.199 H 289.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6540C8
RGBrgb(101, 64, 200)
HSLhsl(256, 55%, 52%)
HSVhsv(256, 68%, 78%)
CMYKcmyk(49.5%, 68%, 0%, 21.6%)
CIE-LABlab(38.90, 48.46, -65.34)
CIE-LCHlch(38.90, 81.35, 306.56°)
OKLaboklab(49.44% 0.0667 -0.1874)
OKLCHoklch(49.44% 0.199 289.6)
XYZxyz(17.6226, 10.6029, 55.7504)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540C8 #A3C840
analogous
#405FC8 #6540C8 #A940C8
triadic
#6540C8 #C86540 #40C865
tetradic
#6540C8 #C8405F #A3C840 #40C8A9
square
#6540C8 #C8405F #A3C840 #40C8A9
split-complementary
#6540C8 #C8A940 #5FC840
monochromatic
#35206E #4C2D9D #6540C8 #8B70D6 #B29FE3

Accessibility & contrast

On white

6.73
#6540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6540C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540C8
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540C8#FFFFFF#000000##FFFFFF
##6540C81.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#43627F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6540c8;
/* rgb */ color: rgb(101, 64, 200);
/* oklch */ color: oklch(49.4% 0.199 289.6);
Tailwind
colors: {
  custom: {
    50: '#9977da',
    500: '#6540c8',
    950: '#000000',
  },
}
SCSS
$custom: #6540c8;
$custom-light: #9977da;
$custom-dark: #000000;
JSON
{
  "hex": "#6540c8",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 256.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.19891,
    "h": 289.6
  },
  "luminance": 0.10604
}

Semantic roles & 50–950 ramp

primary
#6540C8
secondary
#C0D094
accent
#DF49B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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