#6540C0#6540C0

#6540C0 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.8% C 0.189 H 291.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6540C0
RGBrgb(101, 64, 192)
HSLhsl(257, 50%, 50%)
HSVhsv(257, 67%, 75%)
CMYKcmyk(47.4%, 66.7%, 0%, 24.7%)
CIE-LABlab(38.27, 46.20, -61.71)
CIE-LCHlch(38.27, 77.09, 306.82°)
OKLaboklab(48.79% 0.0678 -0.1767)
OKLCHoklch(48.79% 0.189 291)
XYZxyz(16.7120, 10.2387, 50.9547)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540C0 #9BC040
analogous
#405BC0 #6540C0 #A540C0
triadic
#6540C0 #C06540 #40C065
tetradic
#6540C0 #C0405B #9BC040 #40C0A5
square
#6540C0 #C0405B #9BC040 #40C0A5
split-complementary
#6540C0 #C0A540 #5BC040
monochromatic
#352164 #4D3092 #6540C0 #8A6ECF #AF9CDE

Accessibility & contrast

On white

6.89
#6540C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6540C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540C0
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540C0#FFFFFF#000000##FFFFFF
##6540C01.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#485F7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6540c0;
/* rgb */ color: rgb(101, 64, 192);
/* oklch */ color: oklch(48.8% 0.189 291.0);
Tailwind
colors: {
  custom: {
    50: '#9877d4',
    500: '#6540c0',
    950: '#000000',
  },
}
SCSS
$custom: #6540c0;
$custom-light: #9877d4;
$custom-dark: #000000;
JSON
{
  "hex": "#6540c0",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 257.344,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48786,
    "c": 0.18932,
    "h": 291
  },
  "luminance": 0.10239
}

Semantic roles & 50–950 ramp

primary
#6540C0
secondary
#BACB91
accent
#DA4EB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6540C0

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

Preview Lab → · Contrast checker → · Palette generator →

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