#6542CE#6542CE

#6542CE is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.204 H 288.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6542CE
RGBrgb(101, 66, 206)
HSLhsl(255, 59%, 53%)
HSVhsv(255, 68%, 81%)
CMYKcmyk(51%, 68%, 0%, 19.2%)
CIE-LABlab(39.78, 49.09, -67.39)
CIE-LCHlch(39.78, 83.37, 306.07°)
OKLaboklab(50.22% 0.0638 -0.1934)
OKLCHoklch(50.22% 0.204 288.3)
XYZxyz(18.4524, 11.1185, 59.5544)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CE #ABCE42
analogous
#4265CE #6542CE #AB42CE
triadic
#6542CE #CE6542 #42CE65
tetradic
#6542CE #CE4265 #ABCE42 #42CEAB
square
#6542CE #CE4265 #ABCE42 #42CEAB
split-complementary
#6542CE #CEAB42 #65CE42
monochromatic
#351F77 #4A2BA7 #6542CE #8D73DB #B4A3E7

Accessibility & contrast

On white

6.51
#6542CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6542CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542CE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CE#FFFFFF#000000##FFFFFF
##6542CE1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#3E6683
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6542ce;
/* rgb */ color: rgb(101, 66, 206);
/* oklch */ color: oklch(50.2% 0.204 288.3);
Tailwind
colors: {
  custom: {
    50: '#9a79de',
    500: '#6542ce',
    950: '#000000',
  },
}
SCSS
$custom: #6542ce;
$custom-light: #9a79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6542ce",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 255,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50219,
    "c": 0.2037,
    "h": 288.3
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#6542CE
secondary
#C5D498
accent
#E246BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542CE

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

Preview Lab → · Contrast checker → · Palette generator →

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