#6540D3#6540D3

#6540D3 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.4% C 0.212 H 287.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6540D3
RGBrgb(101, 64, 211)
HSLhsl(255, 63%, 54%)
HSVhsv(255, 70%, 83%)
CMYKcmyk(52.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(39.81, 51.57, -70.23)
CIE-LCHlch(39.81, 87.13, 306.29°)
OKLaboklab(50.37% 0.0648 -0.2018)
OKLCHoklch(50.37% 0.212 287.8)
XYZxyz(18.9546, 11.1357, 62.7660)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D3 #AED340
analogous
#4065D3 #6540D3 #AF40D3
triadic
#6540D3 #D36540 #40D365
tetradic
#6540D3 #D34065 #AED340 #40D3AF
square
#6540D3 #D34065 #AED340 #40D3AF
split-complementary
#6540D3 #D3AF40 #65D340
monochromatic
#351D7C #4A28AE #6540D3 #8D72DE #B5A3EA

Accessibility & contrast

On white

6.51
#6540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6540D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D3
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D3#FFFFFF#000000##FFFFFF
##6540D31.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#3A6685
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6540d3;
/* rgb */ color: rgb(101, 64, 211);
/* oklch */ color: oklch(50.4% 0.212 287.8);
Tailwind
colors: {
  custom: {
    50: '#9b78e2',
    500: '#6540d3',
    950: '#000000',
  },
}
SCSS
$custom: #6540d3;
$custom-light: #9b78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d3",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 255.102,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50368,
    "c": 0.2119,
    "h": 287.8
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#6540D3
secondary
#C7D798
accent
#E642BC
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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