#6540EB#6540EB

#6540EB is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.239 H 284.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6540EB
RGBrgb(101, 64, 235)
HSLhsl(253, 81%, 59%)
HSVhsv(253, 73%, 92%)
CMYKcmyk(57%, 72.8%, 0%, 7.8%)
CIE-LABlab(41.89, 58.35, -80.51)
CIE-LCHlch(41.89, 99.43, 305.93°)
OKLaboklab(52.48% 0.0598 -0.2319)
OKLCHoklch(52.48% 0.24 284.5)
XYZxyz(22.1910, 12.4303, 79.8111)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540EB #C6EB40
analogous
#4070EB #6540EB #BA40EB
triadic
#6540EB #EB6540 #40EB65
tetradic
#6540EB #EB4070 #C6EB40 #40EBBA
square
#6540EB #EB4070 #C6EB40 #40EBBA
split-complementary
#6540EB #EBBA40 #70EB40
monochromatic
#3011A0 #4017D7 #6540EB #9277F1 #BEAFF7

Accessibility & contrast

On white

6.02
#6540EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6540EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540EB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540EB#FFFFFF#000000##FFFFFF
##6540EB1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068F0
Deuteranopia (green-blind)
#005DE8
Tritanopia (blue-blind)
#1B6F92
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6540eb;
/* rgb */ color: rgb(101, 64, 235);
/* oklch */ color: oklch(52.5% 0.239 284.5);
Tailwind
colors: {
  custom: {
    50: '#9e79f3',
    500: '#6540eb',
    950: '#000000',
  },
}
SCSS
$custom: #6540eb;
$custom-light: #9e79f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6540eb",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 235
  },
  "hsl": {
    "h": 252.982,
    "s": 81.043,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.2395,
    "h": 284.5
  },
  "luminance": 0.12432
}

Semantic roles & 50–950 ramp

primary
#6540EB
secondary
#D7E5A2
accent
#F730CC
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6540EB

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

Preview Lab → · Contrast checker → · Palette generator →

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