#6542EA#6542EA

#6542EA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.236 H 284.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#6542EA
RGBrgb(101, 66, 234)
HSLhsl(253, 80%, 59%)
HSVhsv(253, 72%, 92%)
CMYKcmyk(56.8%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.16, 57.07, -79.51)
CIE-LCHlch(42.16, 97.87, 305.67°)
OKLaboklab(52.64% 0.0586 -0.229)
OKLCHoklch(52.64% 0.236 284.4)
XYZxyz(22.1618, 12.6023, 79.0906)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6542EA #C7EA42
analogous
#4273EA #6542EA #B942EA
triadic
#6542EA #EA6542 #42EA65
tetradic
#6542EA #EA4273 #C7EA42 #42EAB9
square
#6542EA #EA4273 #C7EA42 #42EAB9
split-complementary
#6542EA #EAB942 #73EA42
monochromatic
#2F12A0 #4018D7 #6542EA #9279F0 #BFB0F6

Accessibility & contrast

On white

5.96
#6542EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6542EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6542EA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6542EA#FFFFFF#000000##FFFFFF
##6542EA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005EE7
Tritanopia (blue-blind)
#1D7092
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6542ea;
/* rgb */ color: rgb(101, 66, 234);
/* oklch */ color: oklch(52.6% 0.236 284.4);
Tailwind
colors: {
  custom: {
    50: '#9e7af2',
    500: '#6542ea',
    950: '#000000',
  },
}
SCSS
$custom: #6542ea;
$custom-light: #9e7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6542ea",
  "rgb": {
    "r": 101,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 252.5,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52644,
    "c": 0.23636,
    "h": 284.4
  },
  "luminance": 0.12604
}

Semantic roles & 50–950 ramp

primary
#6542EA
secondary
#D7E5A3
accent
#F631CD
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6542EA

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

Preview Lab → · Contrast checker → · Palette generator →

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