#6540B8#6540B8

#6540B8 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.180 H 292.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6540B8
RGBrgb(101, 64, 184)
HSLhsl(259, 48%, 49%)
HSVhsv(259, 65%, 72%)
CMYKcmyk(45.1%, 65.2%, 0%, 27.8%)
CIE-LABlab(37.65, 43.96, -58.02)
CIE-LCHlch(37.65, 72.79, 307.15°)
OKLaboklab(48.15% 0.0688 -0.1659)
OKLCHoklch(48.15% 0.18 292.5)
XYZxyz(15.8496, 9.8937, 46.4127)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540B8 #93B840
analogous
#4057B8 #6540B8 #A140B8
triadic
#6540B8 #B86540 #40B865
tetradic
#6540B8 #B84057 #93B840 #40B8A1
square
#6540B8 #B84057 #93B840 #40B8A1
split-complementary
#6540B8 #B8A140 #57B840
monochromatic
#33205D #4C308B #6540B8 #886ACB #AC97DB

Accessibility & contrast

On white

7.05
#6540B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6540B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540B8
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540B8#FFFFFF#000000##FFFFFF
##6540B81.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#4D5D76
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6540b8;
/* rgb */ color: rgb(101, 64, 184);
/* oklch */ color: oklch(48.1% 0.180 292.5);
Tailwind
colors: {
  custom: {
    50: '#9777ce',
    500: '#6540b8',
    950: '#000000',
  },
}
SCSS
$custom: #6540b8;
$custom-light: #9777ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6540b8",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 258.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48149,
    "c": 0.1796,
    "h": 292.5
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#6540B8
secondary
#B5C78D
accent
#D850AE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6540B8

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

Preview Lab → · Contrast checker → · Palette generator →

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