#6540C2#6540C2

#6540C2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.192 H 290.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6540C2
RGBrgb(101, 64, 194)
HSLhsl(257, 52%, 51%)
HSVhsv(257, 67%, 76%)
CMYKcmyk(47.9%, 67%, 0%, 23.9%)
CIE-LABlab(38.42, 46.77, -62.63)
CIE-LCHlch(38.42, 78.16, 306.75°)
OKLaboklab(48.95% 0.0676 -0.1794)
OKLCHoklch(48.95% 0.192 290.6)
XYZxyz(16.9351, 10.3279, 52.1297)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540C2 #9DC240
analogous
#405CC2 #6540C2 #A640C2
triadic
#6540C2 #C26540 #40C265
tetradic
#6540C2 #C2405C #9DC240 #40C2A6
square
#6540C2 #C2405C #9DC240 #40C2A6
split-complementary
#6540C2 #C2A640 #5CC240
monochromatic
#352167 #4D3095 #6540C2 #8A6ED1 #B09DE0

Accessibility & contrast

On white

6.85
#6540C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6540C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540C2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540C2#FFFFFF#000000##FFFFFF
##6540C21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#47607C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6540c2;
/* rgb */ color: rgb(101, 64, 194);
/* oklch */ color: oklch(48.9% 0.192 290.6);
Tailwind
colors: {
  custom: {
    50: '#9977d5',
    500: '#6540c2',
    950: '#000000',
  },
}
SCSS
$custom: #6540c2;
$custom-light: #9977d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6540c2",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 257.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48948,
    "c": 0.19174,
    "h": 290.6
  },
  "luminance": 0.10329
}

Semantic roles & 50–950 ramp

primary
#6540C2
secondary
#BBCC92
accent
#DB4DB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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