#6542C8#6542C8

#6542C8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.197 H 289.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6542C8
RGBrgb(101, 66, 200)
HSLhsl(256, 55%, 52%)
HSVhsv(256, 67%, 78%)
CMYKcmyk(49.5%, 67%, 0%, 21.6%)
CIE-LABlab(39.30, 47.38, -64.70)
CIE-LCHlch(39.30, 80.19, 306.22°)
OKLaboklab(49.72% 0.0648 -0.1855)
OKLCHoklch(49.72% 0.197 289.2)
XYZxyz(17.7374, 10.8325, 55.7887)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542C8 #A5C842
analogous
#4262C8 #6542C8 #A842C8
triadic
#6542C8 #C86542 #42C865
tetradic
#6542C8 #C84262 #A5C842 #42C8A8
square
#6542C8 #C84262 #A5C842 #42C8A8
split-complementary
#6542C8 #C8A842 #62C842
monochromatic
#35206F #4C2E9F #6542C8 #8C71D6 #B2A1E4

Accessibility & contrast

On white

6.63
#6542C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6542C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542C8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542C8#FFFFFF#000000##FFFFFF
##6542C81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#43637F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6542c8;
/* rgb */ color: rgb(101, 66, 200);
/* oklch */ color: oklch(49.7% 0.197 289.2);
Tailwind
colors: {
  custom: {
    50: '#9979da',
    500: '#6542c8',
    950: '#000000',
  },
}
SCSS
$custom: #6542c8;
$custom-light: #9979da;
$custom-dark: #000000;
JSON
{
  "hex": "#6542c8",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 255.672,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49723,
    "c": 0.1965,
    "h": 289.2
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#6542C8
secondary
#C1D096
accent
#DE4AB7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6542C8

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

Preview Lab → · Contrast checker → · Palette generator →

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