#6542CF#6542CF

#6542CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.205 H 288.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6542CF
RGBrgb(101, 66, 207)
HSLhsl(255, 59%, 54%)
HSVhsv(255, 68%, 81%)
CMYKcmyk(51.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.86, 49.37, -67.84)
CIE-LCHlch(39.86, 83.90, 306.05°)
OKLaboklab(50.3% 0.0637 -0.1947)
OKLCHoklch(50.3% 0.205 288.1)
XYZxyz(18.5742, 11.1673, 60.1962)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CF #ACCF42
analogous
#4265CF #6542CF #AC42CF
triadic
#6542CF #CF6542 #42CF65
tetradic
#6542CF #CF4265 #ACCF42 #42CFAC
square
#6542CF #CF4265 #ACCF42 #42CFAC
split-complementary
#6542CF #CFAC42 #65CF42
monochromatic
#351F78 #4A2BA9 #6542CF #8D73DB #B5A4E8

Accessibility & contrast

On white

6.49
#6542CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6542CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542CF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CF#FFFFFF#000000##FFFFFF
##6542CF1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#3E6683
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6542cf;
/* rgb */ color: rgb(101, 66, 207);
/* oklch */ color: oklch(50.3% 0.205 288.1);
Tailwind
colors: {
  custom: {
    50: '#9a79df',
    500: '#6542cf',
    950: '#000000',
  },
}
SCSS
$custom: #6542cf;
$custom-light: #9a79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6542cf",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 254.894,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50303,
    "c": 0.20489,
    "h": 288.1
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#6542CF
secondary
#C6D598
accent
#E345BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542CF

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

Preview Lab → · Contrast checker → · Palette generator →

#6542CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva