#6542DF#6542DF

#6542DF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.224 H 285.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#6542DF
RGBrgb(101, 66, 223)
HSLhsl(253, 71%, 57%)
HSVhsv(253, 70%, 87%)
CMYKcmyk(54.7%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.20, 53.94, -74.83)
CIE-LCHlch(41.20, 92.24, 305.78°)
OKLaboklab(51.67% 0.0608 -0.2153)
OKLCHoklch(51.67% 0.224 285.8)
XYZxyz(20.6303, 11.9897, 71.0249)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542DF #BCDF42
analogous
#426EDF #6542DF #B442DF
triadic
#6542DF #DF6542 #42DF65
tetradic
#6542DF #DF426E #BCDF42 #42DFB4
square
#6542DF #DF426E #BCDF42 #42DFB4
split-complementary
#6542DF #DFB442 #6EDF42
monochromatic
#33188E #4521C3 #6542DF #9076E8 #BAABF1

Accessibility & contrast

On white

6.18
#6542DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6542DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542DF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542DF#FFFFFF#000000##FFFFFF
##6542DF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#2E6C8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6542df;
/* rgb */ color: rgb(101, 66, 223);
/* oklch */ color: oklch(51.7% 0.224 285.8);
Tailwind
colors: {
  custom: {
    50: '#9d79ea',
    500: '#6542df',
    950: '#000000',
  },
}
SCSS
$custom: #6542df;
$custom-light: #9d79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6542df",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 253.376,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.2237,
    "h": 285.8
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#6542DF
secondary
#D0DF9E
accent
#EE3AC6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6542DF

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

Preview Lab → · Contrast checker → · Palette generator →

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