#6540E1#6540E1

#6540E1 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.228 H 285.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6540E1
RGBrgb(101, 64, 225)
HSLhsl(254, 73%, 57%)
HSVhsv(254, 72%, 88%)
CMYKcmyk(55.1%, 71.6%, 0%, 11.8%)
CIE-LABlab(41.01, 55.53, -76.29)
CIE-LCHlch(41.01, 94.36, 306.05°)
OKLaboklab(51.59% 0.062 -0.2195)
OKLCHoklch(51.59% 0.228 285.8)
XYZxyz(20.7867, 11.8686, 72.4151)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540E1 #BCE140
analogous
#406CE1 #6540E1 #B640E1
triadic
#6540E1 #E16540 #40E165
tetradic
#6540E1 #E1406C #BCE140 #40E1B6
square
#6540E1 #E1406C #BCE140 #40E1B6
split-complementary
#6540E1 #E1B640 #6CE140
monochromatic
#331790 #451FC5 #6540E1 #9075E9 #BAAAF2

Accessibility & contrast

On white

6.22
#6540E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6540E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540E1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540E1#FFFFFF#000000##FFFFFF
##6540E11.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#2C6C8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6540e1;
/* rgb */ color: rgb(101, 64, 225);
/* oklch */ color: oklch(51.6% 0.228 285.8);
Tailwind
colors: {
  custom: {
    50: '#9d78ec',
    500: '#6540e1',
    950: '#000000',
  },
}
SCSS
$custom: #6540e1;
$custom-light: #9d78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6540e1",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 253.789,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51587,
    "c": 0.22812,
    "h": 285.8
  },
  "luminance": 0.1187
}

Semantic roles & 50–950 ramp

primary
#6540E1
secondary
#D0DF9D
accent
#F038C5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6540E1

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

Preview Lab → · Contrast checker → · Palette generator →

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