#6542C9#6542C9

#6542C9 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.198 H 289.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6542C9
RGBrgb(101, 66, 201)
HSLhsl(256, 56%, 52%)
HSVhsv(256, 67%, 79%)
CMYKcmyk(49.8%, 67.2%, 0%, 21.2%)
CIE-LABlab(39.38, 47.66, -65.15)
CIE-LCHlch(39.38, 80.72, 306.19°)
OKLaboklab(49.81% 0.0646 -0.1869)
OKLCHoklch(49.81% 0.198 289.1)
XYZxyz(17.8546, 10.8794, 56.4062)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542C9 #A6C942
analogous
#4262C9 #6542C9 #A942C9
triadic
#6542C9 #C96542 #42C965
tetradic
#6542C9 #C94262 #A6C942 #42C9A9
square
#6542C9 #C94262 #A6C942 #42C9A9
split-complementary
#6542C9 #C9A942 #62C942
monochromatic
#352070 #4B2EA0 #6542C9 #8C72D7 #B3A1E4

Accessibility & contrast

On white

6.61
#6542C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6542C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542C9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542C9#FFFFFF#000000##FFFFFF
##6542C91.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#426480
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6542c9;
/* rgb */ color: rgb(101, 66, 201);
/* oklch */ color: oklch(49.8% 0.198 289.1);
Tailwind
colors: {
  custom: {
    50: '#9979da',
    500: '#6542c9',
    950: '#000000',
  },
}
SCSS
$custom: #6542c9;
$custom-light: #9979da;
$custom-dark: #000000;
JSON
{
  "hex": "#6542c9",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 255.556,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49805,
    "c": 0.19771,
    "h": 289.1
  },
  "luminance": 0.1088
}

Semantic roles & 50–950 ramp

primary
#6542C9
secondary
#C2D196
accent
#DF49B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542C9

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

Preview Lab → · Contrast checker → · Palette generator →

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