#6542D7#6542D7

#6542D7 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.214 H 286.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6542D7
RGBrgb(101, 66, 215)
HSLhsl(254, 65%, 55%)
HSVhsv(254, 69%, 84%)
CMYKcmyk(53%, 69.3%, 0%, 15.7%)
CIE-LABlab(40.52, 51.66, -71.36)
CIE-LCHlch(40.52, 88.10, 305.90°)
OKLaboklab(50.98% 0.0623 -0.2051)
OKLCHoklch(50.98% 0.214 286.9)
XYZxyz(19.5771, 11.5684, 65.4782)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542D7 #B4D742
analogous
#4269D7 #6542D7 #B042D7
triadic
#6542D7 #D76542 #42D765
tetradic
#6542D7 #D74269 #B4D742 #42D7B0
square
#6542D7 #D74269 #B4D742 #42D7B0
split-complementary
#6542D7 #D7B042 #69D742
monochromatic
#341C83 #4826B5 #6542D7 #8E75E2 #B7A7EC

Accessibility & contrast

On white

6.34
#6542D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6542D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542D7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542D7#FFFFFF#000000##FFFFFF
##6542D71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#376988
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6542d7;
/* rgb */ color: rgb(101, 66, 215);
/* oklch */ color: oklch(51.0% 0.214 286.9);
Tailwind
colors: {
  custom: {
    50: '#9b79e4',
    500: '#6542d7',
    950: '#000000',
  },
}
SCSS
$custom: #6542d7;
$custom-light: #9b79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6542d7",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 254.094,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.21436,
    "h": 286.9
  },
  "luminance": 0.11569
}

Semantic roles & 50–950 ramp

primary
#6542D7
secondary
#CBDA9B
accent
#E840C1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6542D7

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

Preview Lab → · Contrast checker → · Palette generator →

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