#6540CB#6540CB

#6540CB is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.202 H 289.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6540CB
RGBrgb(101, 64, 203)
HSLhsl(256, 57%, 52%)
HSVhsv(256, 68%, 80%)
CMYKcmyk(50.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.15, 49.31, -66.69)
CIE-LCHlch(39.15, 82.93, 306.48°)
OKLaboklab(49.69% 0.0662 -0.1914)
OKLCHoklch(49.69% 0.202 289.1)
XYZxyz(17.9766, 10.7445, 57.6150)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540CB #A6CB40
analogous
#4061CB #6540CB #AA40CB
triadic
#6540CB #CB6540 #40CB65
tetradic
#6540CB #CB4061 #A6CB40 #40CBAA
square
#6540CB #CB4061 #A6CB40 #40CBAA
split-complementary
#6540CB #CBAA40 #61CB40
monochromatic
#351F72 #4B2CA2 #6540CB #8C70D8 #B3A0E5

Accessibility & contrast

On white

6.67
#6540CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6540CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540CB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540CB#FFFFFF#000000##FFFFFF
##6540CB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#416380
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6540cb;
/* rgb */ color: rgb(101, 64, 203);
/* oklch */ color: oklch(49.7% 0.202 289.1);
Tailwind
colors: {
  custom: {
    50: '#9a78dc',
    500: '#6540cb',
    950: '#000000',
  },
}
SCSS
$custom: #6540cb;
$custom-light: #9a78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6540cb",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 255.971,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.20248,
    "h": 289.1
  },
  "luminance": 0.10745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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