#6540CA#6540CA

#6540CA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.201 H 289.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#6540CA
RGBrgb(101, 64, 202)
HSLhsl(256, 57%, 52%)
HSVhsv(256, 68%, 79%)
CMYKcmyk(50%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.07, 49.02, -66.24)
CIE-LCHlch(39.07, 82.41, 306.51°)
OKLaboklab(49.61% 0.0663 -0.19)
OKLCHoklch(49.61% 0.201 289.2)
XYZxyz(17.8578, 10.6970, 56.9894)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CA #A5CA40
analogous
#4060CA #6540CA #AA40CA
triadic
#6540CA #CA6540 #40CA65
tetradic
#6540CA #CA4060 #A5CA40 #40CAAA
square
#6540CA #CA4060 #A5CA40 #40CAAA
split-complementary
#6540CA #CAAA40 #60CA40
monochromatic
#351F70 #4C2CA0 #6540CA #8C70D7 #B2A0E5

Accessibility & contrast

On white

6.69
#6540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6540CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CA#FFFFFF#000000##FFFFFF
##6540CA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#426380
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6540ca;
/* rgb */ color: rgb(101, 64, 202);
/* oklch */ color: oklch(49.6% 0.201 289.2);
Tailwind
colors: {
  custom: {
    50: '#9a78db',
    500: '#6540ca',
    950: '#000000',
  },
}
SCSS
$custom: #6540ca;
$custom-light: #9a78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ca",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 256.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49607,
    "c": 0.2013,
    "h": 289.2
  },
  "luminance": 0.10698
}

Semantic roles & 50–950 ramp

primary
#6540CA
secondary
#C1D195
accent
#E048B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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