#6542BC#6542BC

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

Color values

HEX#6542BC
RGBrgb(101, 66, 188)
HSLhsl(257, 48%, 50%)
HSVhsv(257, 65%, 74%)
CMYKcmyk(46.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.36, 43.97, -59.21)
CIE-LCHlch(38.36, 73.75, 306.60°)
OKLaboklab(48.76% 0.0663 -0.1694)
OKLCHoklch(48.76% 0.182 291.4)
XYZxyz(16.3896, 10.2934, 48.6905)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542BC #99BC42
analogous
#425CBC #6542BC #A242BC
triadic
#6542BC #BC6542 #42BC65
tetradic
#6542BC #BC425C #99BC42 #42BCA2
square
#6542BC #BC425C #99BC42 #42BCA2
split-complementary
#6542BC #BCA242 #5CBC42
monochromatic
#342261 #4D328F #6542BC #8A6FCC #AF9CDC

Accessibility & contrast

On white

6.87
#6542BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6542BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542BC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542BC#FFFFFF#000000##FFFFFF
##6542BC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6542bc;
/* rgb */ color: rgb(101, 66, 188);
/* oklch */ color: oklch(48.8% 0.182 291.4);
Tailwind
colors: {
  custom: {
    50: '#9878d1',
    500: '#6542bc',
    950: '#000000',
  },
}
SCSS
$custom: #6542bc;
$custom-light: #9878d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6542bc",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 257.213,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48759,
    "c": 0.1819,
    "h": 291.4
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#6542BC
secondary
#B9C991
accent
#D850B1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6542BC

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

Preview Lab → · Contrast checker → · Palette generator →

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