#6540DB#6540DB

#6540DB is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.221 H 286.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6540DB
RGBrgb(101, 64, 219)
HSLhsl(254, 68%, 55%)
HSVhsv(254, 71%, 86%)
CMYKcmyk(53.9%, 70.8%, 0%, 14.1%)
CIE-LABlab(40.49, 53.83, -73.71)
CIE-LCHlch(40.49, 91.28, 306.14°)
OKLaboklab(51.06% 0.0632 -0.212)
OKLCHoklch(51.06% 0.221 286.6)
XYZxyz(19.9826, 11.5469, 68.1799)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540DB #B6DB40
analogous
#4068DB #6540DB #B340DB
triadic
#6540DB #DB6540 #40DB65
tetradic
#6540DB #DB4068 #B6DB40 #40DBB3
square
#6540DB #DB4068 #B6DB40 #40DBB3
split-complementary
#6540DB #DBB340 #68DB40
monochromatic
#341987 #4723BB #6540DB #8F73E5 #B8A7EE

Accessibility & contrast

On white

6.35
#6540DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6540DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540DB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540DB#FFFFFF#000000##FFFFFF
##6540DB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#336989
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6540db;
/* rgb */ color: rgb(101, 64, 219);
/* oklch */ color: oklch(51.1% 0.221 286.6);
Tailwind
colors: {
  custom: {
    50: '#9c78e7',
    500: '#6540db',
    950: '#000000',
  },
}
SCSS
$custom: #6540db;
$custom-light: #9c78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6540db",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 254.323,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51059,
    "c": 0.22121,
    "h": 286.6
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#6540DB
secondary
#CCDC9B
accent
#EB3DC1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6540DB

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

Preview Lab → · Contrast checker → · Palette generator →

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