#6540B3#6540B3

#6540B3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.173 H 293.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#6540B3
RGBrgb(101, 64, 179)
HSLhsl(259, 47%, 48%)
HSVhsv(259, 64%, 70%)
CMYKcmyk(43.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(37.28, 42.56, -55.67)
CIE-LCHlch(37.28, 70.08, 307.40°)
OKLaboklab(47.76% 0.0694 -0.159)
OKLCHoklch(47.76% 0.173 293.6)
XYZxyz(15.3347, 9.6877, 43.7011)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540B3 #8EB340
analogous
#4055B3 #6540B3 #9E40B3
triadic
#6540B3 #B36540 #40B365
tetradic
#6540B3 #B34055 #8EB340 #40B39E
square
#6540B3 #B34055 #8EB340 #40B39E
split-complementary
#6540B3 #B39E40 #55B340
monochromatic
#322059 #4C3086 #6540B3 #8767C9 #AB94D9

Accessibility & contrast

On white

7.15
#6540B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6540B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540B3
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540B3#FFFFFF#000000##FFFFFF
##6540B31.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#4F5B74
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6540b3;
/* rgb */ color: rgb(101, 64, 179);
/* oklch */ color: oklch(47.8% 0.173 293.6);
Tailwind
colors: {
  custom: {
    50: '#9777cb',
    500: '#6540b3',
    950: '#000000',
  },
}
SCSS
$custom: #6540b3;
$custom-light: #9777cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6540b3",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 259.304,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4776,
    "c": 0.17347,
    "h": 293.6
  },
  "luminance": 0.09688
}

Semantic roles & 50–950 ramp

primary
#6540B3
secondary
#B2C48A
accent
#D751AC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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