#6540CC#6540CC

#6540CC is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.204 H 288.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6540CC
RGBrgb(101, 64, 204)
HSLhsl(256, 58%, 53%)
HSVhsv(256, 69%, 80%)
CMYKcmyk(50.5%, 68.6%, 0%, 20%)
CIE-LABlab(39.23, 49.59, -67.13)
CIE-LCHlch(39.23, 83.46, 306.45°)
OKLaboklab(49.78% 0.066 -0.1927)
OKLCHoklch(49.78% 0.204 288.9)
XYZxyz(18.0961, 10.7923, 58.2447)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CC #A7CC40
analogous
#4061CC #6540CC #AB40CC
triadic
#6540CC #CC6540 #40CC65
tetradic
#6540CC #CC4061 #A7CC40 #40CCAB
square
#6540CC #CC4061 #A7CC40 #40CCAB
split-complementary
#6540CC #CCAB40 #61CC40
monochromatic
#351F73 #4B2CA3 #6540CC #8C70D9 #B3A1E6

Accessibility & contrast

On white

6.65
#6540CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6540CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CC#FFFFFF#000000##FFFFFF
##6540CC1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#406481
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6540cc;
/* rgb */ color: rgb(101, 64, 204);
/* oklch */ color: oklch(49.8% 0.204 288.9);
Tailwind
colors: {
  custom: {
    50: '#9a78dd',
    500: '#6540cc',
    950: '#000000',
  },
}
SCSS
$custom: #6540cc;
$custom-light: #9a78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6540cc",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 255.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49775,
    "c": 0.20366,
    "h": 288.9
  },
  "luminance": 0.10793
}

Semantic roles & 50–950 ramp

primary
#6540CC
secondary
#C2D295
accent
#E147B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6540CC

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

Preview Lab → · Contrast checker → · Palette generator →

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