#6542D6#6542D6

#6542D6 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.213 H 287.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6542D6
RGBrgb(101, 66, 214)
HSLhsl(254, 64%, 55%)
HSVhsv(254, 69%, 84%)
CMYKcmyk(52.8%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.44, 51.37, -70.92)
CIE-LCHlch(40.44, 87.57, 305.92°)
OKLaboklab(50.9% 0.0625 -0.2038)
OKLCHoklch(50.9% 0.213 287.1)
XYZxyz(19.4490, 11.5172, 64.8035)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542D6 #B3D642
analogous
#4269D6 #6542D6 #AF42D6
triadic
#6542D6 #D66542 #42D665
tetradic
#6542D6 #D64269 #B3D642 #42D6AF
square
#6542D6 #D64269 #B3D642 #42D6AF
split-complementary
#6542D6 #D6AF42 #69D642
monochromatic
#341C82 #4827B4 #6542D6 #8E74E1 #B7A7EC

Accessibility & contrast

On white

6.36
#6542D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6542D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542D6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542D6#FFFFFF#000000##FFFFFF
##6542D61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005BD3
Tritanopia (blue-blind)
#386887
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6542d6;
/* rgb */ color: rgb(101, 66, 214);
/* oklch */ color: oklch(50.9% 0.213 287.1);
Tailwind
colors: {
  custom: {
    50: '#9b79e4',
    500: '#6542d6',
    950: '#000000',
  },
}
SCSS
$custom: #6542d6;
$custom-light: #9b79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6542d6",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 254.189,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50895,
    "c": 0.21318,
    "h": 287.1
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#6542D6
secondary
#CAD99B
accent
#E740C0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6542D6

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

Preview Lab → · Contrast checker → · Palette generator →

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