#6542E1#6542E1

#6542E1 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.226 H 285.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#6542E1
RGBrgb(101, 66, 225)
HSLhsl(253, 73%, 57%)
HSVhsv(253, 71%, 88%)
CMYKcmyk(55.1%, 70.7%, 0%, 11.8%)
CIE-LABlab(41.37, 54.51, -75.69)
CIE-LCHlch(41.37, 93.27, 305.76°)
OKLaboklab(51.85% 0.0605 -0.2178)
OKLCHoklch(51.85% 0.226 285.5)
XYZxyz(20.9015, 12.0982, 72.4534)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542E1 #BEE142
analogous
#426EE1 #6542E1 #B542E1
triadic
#6542E1 #E16542 #42E165
tetradic
#6542E1 #E1426E #BEE142 #42E1B5
square
#6542E1 #E1426E #BEE142 #42E1B5
split-complementary
#6542E1 #E1B542 #6EE142
monochromatic
#321792 #441FC6 #6542E1 #9077E9 #BBACF2

Accessibility & contrast

On white

6.14
#6542E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#6542E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542E1
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542E1#FFFFFF#000000##FFFFFF
##6542E11.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005DDE
Tritanopia (blue-blind)
#2B6D8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6542e1;
/* rgb */ color: rgb(101, 66, 225);
/* oklch */ color: oklch(51.8% 0.226 285.5);
Tailwind
colors: {
  custom: {
    50: '#9d7aec',
    500: '#6542e1',
    950: '#000000',
  },
}
SCSS
$custom: #6542e1;
$custom-light: #9d7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6542e1",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 253.208,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51847,
    "c": 0.22601,
    "h": 285.5
  },
  "luminance": 0.12099
}

Semantic roles & 50–950 ramp

primary
#6542E1
secondary
#D1E09F
accent
#EF38C7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6542E1

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

Preview Lab → · Contrast checker → · Palette generator →

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