#A542DA#A542DA

#A542DA is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.2% C 0.226 H 311.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A542DA
RGBrgb(165, 66, 218)
HSLhsl(279, 67%, 56%)
HSVhsv(279, 70%, 85%)
CMYKcmyk(24.3%, 69.7%, 0%, 14.5%)
CIE-LABlab(48.21, 64.12, -60.25)
CIE-LCHlch(48.21, 87.99, 316.78°)
OKLaboklab(58.18% 0.1488 -0.1703)
OKLCHoklch(58.18% 0.226 311.1)
XYZxyz(30.1178, 16.9584, 68.0028)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542DA #77DA42
analogous
#5942DA #A542DA #DA42C3
triadic
#A542DA #DAA542 #42DAA5
tetradic
#A542DA #DA5942 #77DA42 #42C3DA
square
#A542DA #DA5942 #77DA42 #42C3DA
split-complementary
#A542DA #C3DA42 #42DA59
monochromatic
#611A87 #8624BA #A542DA #BD75E4 #D6A8EE

Accessibility & contrast

On white

4.78
#A542DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A542DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542DA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542DA#FFFFFF#000000##FFFFFF
##A542DA1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#2C74D7
Tritanopia (blue-blind)
#9E638A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a542da;
/* rgb */ color: rgb(165, 66, 218);
/* oklch */ color: oklch(58.2% 0.226 311.1);
Tailwind
colors: {
  custom: {
    50: '#c47ee6',
    500: '#a542da',
    950: '#000000',
  },
}
SCSS
$custom: #a542da;
$custom-light: #c47ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#a542da",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 279.079,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58184,
    "c": 0.22615,
    "h": 311.1
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#A542DA
secondary
#B2DB9C
accent
#EA3E7A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542DA

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

Preview Lab → · Contrast checker → · Palette generator →

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