#6542C2#6542C2

#6542C2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.189 H 290.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6542C2
RGBrgb(101, 66, 194)
HSLhsl(256, 51%, 51%)
HSVhsv(256, 66%, 76%)
CMYKcmyk(47.9%, 66%, 0%, 23.9%)
CIE-LABlab(38.83, 45.67, -61.97)
CIE-LCHlch(38.83, 76.99, 306.39°)
OKLaboklab(49.24% 0.0656 -0.1775)
OKLCHoklch(49.24% 0.189 290.3)
XYZxyz(17.0499, 10.5575, 52.1679)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542C2 #9FC242
analogous
#425FC2 #6542C2 #A542C2
triadic
#6542C2 #C26542 #42C265
tetradic
#6542C2 #C2425F #9FC242 #42C2A5
square
#6542C2 #C2425F #9FC242 #42C2A5
split-complementary
#6542C2 #C2A542 #5FC242
monochromatic
#352268 #4C3196 #6542C2 #8B70D1 #B09FE0

Accessibility & contrast

On white

6.75
#6542C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6542C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542C2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542C2#FFFFFF#000000##FFFFFF
##6542C21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#47617C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6542c2;
/* rgb */ color: rgb(101, 66, 194);
/* oklch */ color: oklch(49.2% 0.189 290.3);
Tailwind
colors: {
  custom: {
    50: '#9979d5',
    500: '#6542c2',
    950: '#000000',
  },
}
SCSS
$custom: #6542c2;
$custom-light: #9979d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6542c2",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 256.406,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.18924,
    "h": 290.3
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#6542C2
secondary
#BDCC94
accent
#DB4DB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6542C2

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

Preview Lab → · Contrast checker → · Palette generator →

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