#6542CD#6542CD

#6542CD is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.203 H 288.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6542CD
RGBrgb(101, 66, 205)
HSLhsl(255, 58%, 53%)
HSVhsv(255, 68%, 80%)
CMYKcmyk(50.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.70, 48.80, -66.94)
CIE-LCHlch(39.70, 82.85, 306.09°)
OKLaboklab(50.14% 0.064 -0.1921)
OKLCHoklch(50.14% 0.203 288.4)
XYZxyz(18.3313, 11.0701, 58.9166)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CD #AACD42
analogous
#4264CD #6542CD #AA42CD
triadic
#6542CD #CD6542 #42CD65
tetradic
#6542CD #CD4264 #AACD42 #42CDAA
square
#6542CD #CD4264 #AACD42 #42CDAA
split-complementary
#6542CD #CDAA42 #64CD42
monochromatic
#351F76 #4B2CA6 #6542CD #8C72DA #B4A3E7

Accessibility & contrast

On white

6.53
#6542CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6542CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542CD
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CD#FFFFFF#000000##FFFFFF
##6542CD1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#3F6582
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6542cd;
/* rgb */ color: rgb(101, 66, 205);
/* oklch */ color: oklch(50.1% 0.203 288.4);
Tailwind
colors: {
  custom: {
    50: '#9a79dd',
    500: '#6542cd',
    950: '#000000',
  },
}
SCSS
$custom: #6542cd;
$custom-light: #9a79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6542cd",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 255.108,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50136,
    "c": 0.20251,
    "h": 288.4
  },
  "luminance": 0.11071
}

Semantic roles & 50–950 ramp

primary
#6542CD
secondary
#C4D397
accent
#E146BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542CD

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

Preview Lab → · Contrast checker → · Palette generator →

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