#6542CA#6542CA

#6542CA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.199 H 288.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#6542CA
RGBrgb(101, 66, 202)
HSLhsl(255, 56%, 53%)
HSVhsv(255, 67%, 79%)
CMYKcmyk(50%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.46, 47.95, -65.60)
CIE-LCHlch(39.46, 81.26, 306.16°)
OKLaboklab(49.89% 0.0645 -0.1882)
OKLCHoklch(49.89% 0.199 288.9)
XYZxyz(17.9726, 10.9266, 57.0277)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CA #A7CA42
analogous
#4263CA #6542CA #A942CA
triadic
#6542CA #CA6542 #42CA65
tetradic
#6542CA #CA4263 #A7CA42 #42CAA9
square
#6542CA #CA4263 #A7CA42 #42CAA9
split-complementary
#6542CA #CAA942 #63CA42
monochromatic
#352072 #4B2DA2 #6542CA #8C72D7 #B3A2E5

Accessibility & contrast

On white

6.59
#6542CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6542CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542CA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CA#FFFFFF#000000##FFFFFF
##6542CA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#416481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6542ca;
/* rgb */ color: rgb(101, 66, 202);
/* oklch */ color: oklch(49.9% 0.199 288.9);
Tailwind
colors: {
  custom: {
    50: '#9a79db',
    500: '#6542ca',
    950: '#000000',
  },
}
SCSS
$custom: #6542ca;
$custom-light: #9a79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6542ca",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 255.441,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.19891,
    "h": 288.9
  },
  "luminance": 0.10927
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6542CA

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

Preview Lab → · Contrast checker → · Palette generator →

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