#6540E7#6540E7

#6540E7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.235 H 285.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#6540E7
RGBrgb(101, 64, 231)
HSLhsl(253, 78%, 58%)
HSVhsv(253, 72%, 91%)
CMYKcmyk(56.3%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.53, 57.22, -78.83)
CIE-LCHlch(41.53, 97.41, 305.97°)
OKLaboklab(52.12% 0.0607 -0.227)
OKLCHoklch(52.12% 0.235 285)
XYZxyz(21.6196, 12.2017, 76.8018)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540E7 #C2E740
analogous
#406FE7 #6540E7 #B840E7
triadic
#6540E7 #E76540 #40E765
tetradic
#6540E7 #E7406F #C2E740 #40E7B8
square
#6540E7 #E7406F #C2E740 #40E7B8
split-complementary
#6540E7 #E7B840 #6FE740
monochromatic
#311399 #421AD0 #6540E7 #9176EE #BDADF5

Accessibility & contrast

On white

6.10
#6540E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#6540E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540E7
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540E7#FFFFFF#000000##FFFFFF
##6540E71.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#236E90
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6540e7;
/* rgb */ color: rgb(101, 64, 231);
/* oklch */ color: oklch(52.1% 0.235 285.0);
Tailwind
colors: {
  custom: {
    50: '#9e79f0',
    500: '#6540e7',
    950: '#000000',
  },
}
SCSS
$custom: #6540e7;
$custom-light: #9e79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6540e7",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 253.293,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52123,
    "c": 0.23496,
    "h": 285
  },
  "luminance": 0.12203
}

Semantic roles & 50–950 ramp

primary
#6540E7
secondary
#D4E3A0
accent
#F434CA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6540E7

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

Preview Lab → · Contrast checker → · Palette generator →

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