#6542D3#6542D3

#6542D3 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.6% C 0.210 H 287.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6542D3
RGBrgb(101, 66, 211)
HSLhsl(254, 62%, 54%)
HSVhsv(254, 69%, 83%)
CMYKcmyk(52.1%, 68.7%, 0%, 17.3%)
CIE-LABlab(40.19, 50.51, -69.61)
CIE-LCHlch(40.19, 86.00, 305.97°)
OKLaboklab(50.64% 0.063 -0.1999)
OKLCHoklch(50.64% 0.21 287.5)
XYZxyz(19.0694, 11.3653, 62.8043)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542D3 #B0D342
analogous
#4268D3 #6542D3 #AE42D3
triadic
#6542D3 #D36542 #42D365
tetradic
#6542D3 #D34268 #B0D342 #42D3AE
square
#6542D3 #D34268 #B0D342 #42D3AE
split-complementary
#6542D3 #D3AE42 #68D342
monochromatic
#341D7D #4929AF #6542D3 #8D74DF #B6A5EA

Accessibility & contrast

On white

6.42
#6542D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6542D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542D3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542D3#FFFFFF#000000##FFFFFF
##6542D31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005BD0
Tritanopia (blue-blind)
#3A6785
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6542d3;
/* rgb */ color: rgb(101, 66, 211);
/* oklch */ color: oklch(50.6% 0.210 287.5);
Tailwind
colors: {
  custom: {
    50: '#9b79e2',
    500: '#6542d3',
    950: '#000000',
  },
}
SCSS
$custom: #6542d3;
$custom-light: #9b79e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6542d3",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 254.483,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5064,
    "c": 0.20964,
    "h": 287.5
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#6542D3
secondary
#C8D79A
accent
#E542BE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6542D3

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

Preview Lab → · Contrast checker → · Palette generator →

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