#6542CC#6542CC

#6542CC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.201 H 288.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6542CC
RGBrgb(101, 66, 204)
HSLhsl(255, 58%, 53%)
HSVhsv(255, 68%, 80%)
CMYKcmyk(50.5%, 67.6%, 0%, 20%)
CIE-LABlab(39.62, 48.52, -66.50)
CIE-LCHlch(39.62, 82.32, 306.12°)
OKLaboklab(50.05% 0.0642 -0.1908)
OKLCHoklch(50.05% 0.201 288.6)
XYZxyz(18.2110, 11.0219, 58.2829)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542CC #A9CC42
analogous
#4264CC #6542CC #AA42CC
triadic
#6542CC #CC6542 #42CC65
tetradic
#6542CC #CC4264 #A9CC42 #42CCAA
square
#6542CC #CC4264 #A9CC42 #42CCAA
split-complementary
#6542CC #CCAA42 #64CC42
monochromatic
#351F74 #4B2CA4 #6542CC #8C72D9 #B4A2E6

Accessibility & contrast

On white

6.55
#6542CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6542CC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542CC#FFFFFF#000000##FFFFFF
##6542CC1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#406582
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6542cc;
/* rgb */ color: rgb(101, 66, 204);
/* oklch */ color: oklch(50.1% 0.201 288.6);
Tailwind
colors: {
  custom: {
    50: '#9a79dd',
    500: '#6542cc',
    950: '#000000',
  },
}
SCSS
$custom: #6542cc;
$custom-light: #9a79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6542cc",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 255.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50053,
    "c": 0.20131,
    "h": 288.6
  },
  "luminance": 0.11023
}

Semantic roles & 50–950 ramp

primary
#6542CC
secondary
#C4D397
accent
#E147BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542CC

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

Preview Lab → · Contrast checker → · Palette generator →

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