#6542BB#6542BB

#6542BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.181 H 291.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6542BB
RGBrgb(101, 66, 187)
HSLhsl(257, 48%, 50%)
HSVhsv(257, 65%, 73%)
CMYKcmyk(46%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.29, 43.69, -58.75)
CIE-LCHlch(38.29, 73.21, 306.64°)
OKLaboklab(48.68% 0.0664 -0.168)
OKLCHoklch(48.68% 0.181 291.6)
XYZxyz(16.2822, 10.2504, 48.1247)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542BB #98BB42
analogous
#425CBB #6542BB #A142BB
triadic
#6542BB #BB6542 #42BB65
tetradic
#6542BB #BB425C #98BB42 #42BBA1
square
#6542BB #BB425C #98BB42 #42BBA1
split-complementary
#6542BB #BBA142 #5CBB42
monochromatic
#342261 #4D328E #6542BB #896ECC #AE9CDC

Accessibility & contrast

On white

6.88
#6542BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6542BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542BB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542BB#FFFFFF#000000##FFFFFF
##6542BB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#4B5F78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6542bb;
/* rgb */ color: rgb(101, 66, 187);
/* oklch */ color: oklch(48.7% 0.181 291.6);
Tailwind
colors: {
  custom: {
    50: '#9878d0',
    500: '#6542bb',
    950: '#000000',
  },
}
SCSS
$custom: #6542bb;
$custom-light: #9878d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6542bb",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 257.355,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48681,
    "c": 0.18068,
    "h": 291.6
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#6542BB
secondary
#B8C891
accent
#D750B0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6542BB

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

Preview Lab → · Contrast checker → · Palette generator →

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