#6540D8#6540D8

#6540D8 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.218 H 287.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6540D8
RGBrgb(101, 64, 216)
HSLhsl(255, 66%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(53.2%, 70.4%, 0%, 15.3%)
CIE-LABlab(40.23, 52.98, -72.41)
CIE-LCHlch(40.23, 89.73, 306.19°)
OKLaboklab(50.8% 0.0638 -0.2082)
OKLCHoklch(50.8% 0.218 287)
XYZxyz(19.5912, 11.3903, 66.1187)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540D8 #B3D840
analogous
#4067D8 #6540D8 #B140D8
triadic
#6540D8 #D86540 #40D865
tetradic
#6540D8 #D84067 #B3D840 #40D8B1
square
#6540D8 #D84067 #B3D840 #40D8B1
split-complementary
#6540D8 #D8B140 #67D840
monochromatic
#341B83 #4825B6 #6540D8 #8E73E2 #B7A6ED

Accessibility & contrast

On white

6.41
#6540D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6540D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540D8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540D8#FFFFFF#000000##FFFFFF
##6540D81.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#005BD5
Tritanopia (blue-blind)
#366888
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6540d8;
/* rgb */ color: rgb(101, 64, 216);
/* oklch */ color: oklch(50.8% 0.218 287.0);
Tailwind
colors: {
  custom: {
    50: '#9c78e5',
    500: '#6540d8',
    950: '#000000',
  },
}
SCSS
$custom: #6540d8;
$custom-light: #9c78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6540d8",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 254.605,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50798,
    "c": 0.21774,
    "h": 287
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#6540D8
secondary
#CADA9A
accent
#E93FC0
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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