#6542DD#6542DD

#6542DD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.221 H 286.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6542DD
RGBrgb(101, 66, 221)
HSLhsl(254, 70%, 56%)
HSVhsv(254, 70%, 87%)
CMYKcmyk(54.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(41.03, 53.37, -73.97)
CIE-LCHlch(41.03, 91.21, 305.81°)
OKLaboklab(51.5% 0.0612 -0.2127)
OKLCHoklch(51.5% 0.221 286.1)
XYZxyz(20.3623, 11.8825, 69.6132)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542DD #BADD42
analogous
#426DDD #6542DD #B242DD
triadic
#6542DD #DD6542 #42DD65
tetradic
#6542DD #DD426D #BADD42 #42DDB2
square
#6542DD #DD426D #BADD42 #42DDB2
split-complementary
#6542DD #DDB242 #6DDD42
monochromatic
#33198C #4622BF #6542DD #8F76E6 #BAAAF0

Accessibility & contrast

On white

6.22
#6542DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6542DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542DD
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542DD#FFFFFF#000000##FFFFFF
##6542DD1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E2
Deuteranopia (green-blind)
#005CDA
Tritanopia (blue-blind)
#306B8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6542dd;
/* rgb */ color: rgb(101, 66, 221);
/* oklch */ color: oklch(51.5% 0.221 286.1);
Tailwind
colors: {
  custom: {
    50: '#9c79e9',
    500: '#6542dd',
    950: '#000000',
  },
}
SCSS
$custom: #6542dd;
$custom-light: #9c79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#6542dd",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 253.548,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.22137,
    "h": 286.1
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#6542DD
secondary
#CFDD9D
accent
#EC3BC4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6542DD

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

Preview Lab → · Contrast checker → · Palette generator →

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