#6540D2#6540D2

#6540D2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.211 H 288.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6540D2
RGBrgb(101, 64, 210)
HSLhsl(255, 62%, 54%)
HSVhsv(255, 70%, 82%)
CMYKcmyk(51.9%, 69.5%, 0%, 17.6%)
CIE-LABlab(39.72, 51.29, -69.79)
CIE-LCHlch(39.72, 86.61, 306.31°)
OKLaboklab(50.28% 0.065 -0.2005)
OKLCHoklch(50.28% 0.211 288)
XYZxyz(18.8297, 11.0857, 62.1079)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D2 #ADD240
analogous
#4064D2 #6540D2 #AE40D2
triadic
#6540D2 #D26540 #40D265
tetradic
#6540D2 #D24064 #ADD240 #40D2AE
square
#6540D2 #D24064 #ADD240 #40D2AE
split-complementary
#6540D2 #D2AE40 #64D240
monochromatic
#351D7B #4A29AC #6540D2 #8D72DE #B5A3E9

Accessibility & contrast

On white

6.53
#6540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D2#FFFFFF#000000##FFFFFF
##6540D21.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#3B6684
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6540d2;
/* rgb */ color: rgb(101, 64, 210);
/* oklch */ color: oklch(50.3% 0.211 288.0);
Tailwind
colors: {
  custom: {
    50: '#9b78e1',
    500: '#6540d2',
    950: '#000000',
  },
}
SCSS
$custom: #6540d2;
$custom-light: #9b78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d2",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 255.205,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.21073,
    "h": 288
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#6540D2
secondary
#C6D698
accent
#E543BC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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