#6542CB#6542CB

#6542CB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.0% C 0.200 H 288.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#6542CB
RGBrgb(101, 66, 203)
HSLhsl(255, 57%, 53%)
HSVhsv(255, 67%, 80%)
CMYKcmyk(50.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(39.54, 48.23, -66.05)
CIE-LCHlch(39.54, 81.79, 306.14°)
OKLaboklab(49.97% 0.0643 -0.1895)
OKLCHoklch(49.97% 0.2 288.7)
XYZxyz(18.0914, 10.9741, 57.6533)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CB #A8CB42
analogous
#4264CB #6542CB #A942CB
triadic
#6542CB #CB6542 #42CB65
tetradic
#6542CB #CB4264 #A8CB42 #42CBA9
square
#6542CB #CB4264 #A8CB42 #42CBA9
split-complementary
#6542CB #CBA942 #64CB42
monochromatic
#352073 #4B2DA3 #6542CB #8C72D8 #B3A2E5

Accessibility & contrast

On white

6.57
#6542CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6542CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542CB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CB#FFFFFF#000000##FFFFFF
##6542CB1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#416481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6542cb;
/* rgb */ color: rgb(101, 66, 203);
/* oklch */ color: oklch(50.0% 0.200 288.7);
Tailwind
colors: {
  custom: {
    50: '#9a79dc',
    500: '#6542cb',
    950: '#000000',
  },
}
SCSS
$custom: #6542cb;
$custom-light: #9a79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6542cb",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 255.328,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4997,
    "c": 0.20012,
    "h": 288.7
  },
  "luminance": 0.10975
}

Semantic roles & 50–950 ramp

primary
#6542CB
secondary
#C3D297
accent
#E048B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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