#6542BD#6542BD

#6542BD is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.183 H 291.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6542BD
RGBrgb(101, 66, 189)
HSLhsl(257, 48%, 50%)
HSVhsv(257, 65%, 74%)
CMYKcmyk(46.6%, 65.1%, 0%, 25.9%)
CIE-LABlab(38.44, 44.26, -59.67)
CIE-LCHlch(38.44, 74.29, 306.56°)
OKLaboklab(48.84% 0.0662 -0.1708)
OKLCHoklch(48.84% 0.183 291.2)
XYZxyz(16.4978, 10.3367, 49.2602)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542BD #9ABD42
analogous
#425DBD #6542BD #A242BD
triadic
#6542BD #BD6542 #42BD65
tetradic
#6542BD #BD425D #9ABD42 #42BDA2
square
#6542BD #BD425D #9ABD42 #42BDA2
split-complementary
#6542BD #BDA242 #5DBD42
monochromatic
#352262 #4D3290 #6542BD #8A6FCD #AF9DDD

Accessibility & contrast

On white

6.85
#6542BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6542BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542BD
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542BD#FFFFFF#000000##FFFFFF
##6542BD1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#4A5F7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6542bd;
/* rgb */ color: rgb(101, 66, 189);
/* oklch */ color: oklch(48.8% 0.183 291.2);
Tailwind
colors: {
  custom: {
    50: '#9878d2',
    500: '#6542bd',
    950: '#000000',
  },
}
SCSS
$custom: #6542bd;
$custom-light: #9878d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6542bd",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 257.073,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.18313,
    "h": 291.2
  },
  "luminance": 0.10337
}

Semantic roles & 50–950 ramp

primary
#6542BD
secondary
#B9C992
accent
#D850B1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6542BD

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

Preview Lab → · Contrast checker → · Palette generator →

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