#6540AF#6540AF

#6540AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.169 H 294.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6540AF
RGBrgb(101, 64, 175)
HSLhsl(260, 46%, 47%)
HSVhsv(260, 63%, 69%)
CMYKcmyk(42.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(36.98, 41.45, -53.78)
CIE-LCHlch(36.98, 67.89, 307.62°)
OKLaboklab(47.45% 0.0697 -0.1534)
OKLCHoklch(47.45% 0.169 294.4)
XYZxyz(14.9360, 9.5283, 41.6013)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540AF #8AAF40
analogous
#4053AF #6540AF #9D40AF
triadic
#6540AF #AF6540 #40AF65
tetradic
#6540AF #AF4053 #8AAF40 #40AF9D
square
#6540AF #AF4053 #8AAF40 #40AF9D
split-complementary
#6540AF #AF9D40 #53AF40
monochromatic
#311F55 #4B3082 #6540AF #8665C7 #A992D7

Accessibility & contrast

On white

7.23
#6540AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6540AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6540AF
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540AF#FFFFFF#000000##FFFFFF
##6540AF1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#515971
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6540af;
/* rgb */ color: rgb(101, 64, 175);
/* oklch */ color: oklch(47.5% 0.169 294.4);
Tailwind
colors: {
  custom: {
    50: '#9677c8',
    500: '#6540af',
    950: '#000000',
  },
}
SCSS
$custom: #6540af;
$custom-light: #9677c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6540af",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 260,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47454,
    "c": 0.16851,
    "h": 294.4
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#6540AF
secondary
#AFC388
accent
#D652AA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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