#A542DC#A542DC

#A542DC is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.3% C 0.228 H 310.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A542DC
RGBrgb(165, 66, 220)
HSLhsl(279, 69%, 56%)
HSVhsv(279, 70%, 86%)
CMYKcmyk(25%, 70%, 0%, 13.7%)
CIE-LABlab(48.34, 64.54, -61.18)
CIE-LCHlch(48.34, 88.93, 316.53°)
OKLaboklab(58.32% 0.1485 -0.173)
OKLCHoklch(58.32% 0.228 310.6)
XYZxyz(30.3811, 17.0638, 69.3895)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542DC #79DC42
analogous
#5842DC #A542DC #DC42C6
triadic
#A542DC #DCA542 #42DCA5
tetradic
#A542DC #DC5842 #79DC42 #42C6DC
square
#A542DC #DC5842 #79DC42 #42C6DC
split-complementary
#A542DC #C6DC42 #42DC58
monochromatic
#621A8A #8623BE #A542DC #BE76E6 #D6A9EF

Accessibility & contrast

On white

4.76
#A542DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#A542DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542DC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542DC#FFFFFF#000000##FFFFFF
##A542DC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#2974D9
Tritanopia (blue-blind)
#9E648B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a542dc;
/* rgb */ color: rgb(165, 66, 220);
/* oklch */ color: oklch(58.3% 0.228 310.6);
Tailwind
colors: {
  custom: {
    50: '#c47ee8',
    500: '#a542dc',
    950: '#000000',
  },
}
SCSS
$custom: #a542dc;
$custom-light: #c47ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a542dc",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 278.571,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5832,
    "c": 0.22804,
    "h": 310.6
  },
  "luminance": 0.17063
}

Semantic roles & 50–950 ramp

primary
#A542DC
secondary
#B4DD9D
accent
#EC3C7B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542DC

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

Preview Lab → · Contrast checker → · Palette generator →

#A542DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva