#6540BA#6540BA

#6540BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.182 H 292.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6540BA
RGBrgb(101, 64, 186)
HSLhsl(258, 49%, 49%)
HSVhsv(258, 66%, 73%)
CMYKcmyk(45.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(37.80, 44.52, -58.95)
CIE-LCHlch(37.80, 73.87, 307.06°)
OKLaboklab(48.31% 0.0686 -0.1686)
OKLCHoklch(48.31% 0.182 292.1)
XYZxyz(16.0607, 9.9781, 47.5246)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540BA #95BA40
analogous
#4058BA #6540BA #A240BA
triadic
#6540BA #BA6540 #40BA65
tetradic
#6540BA #BA4058 #95BA40 #40BAA2
square
#6540BA #BA4058 #95BA40 #40BAA2
split-complementary
#6540BA #BAA240 #58BA40
monochromatic
#34215F #4C308C #6540BA #896BCC #AD99DC

Accessibility & contrast

On white

7.01
#6540BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540BA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540BA#FFFFFF#000000##FFFFFF
##6540BA1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#4C5D77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6540ba;
/* rgb */ color: rgb(101, 64, 186);
/* oklch */ color: oklch(48.3% 0.182 292.1);
Tailwind
colors: {
  custom: {
    50: '#9877d0',
    500: '#6540ba',
    950: '#000000',
  },
}
SCSS
$custom: #6540ba;
$custom-light: #9877d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ba",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 258.197,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48306,
    "c": 0.18204,
    "h": 292.1
  },
  "luminance": 0.09979
}

Semantic roles & 50–950 ramp

primary
#6540BA
secondary
#B6C88E
accent
#D84FAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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