#A542D9#A542D9

#A542D9 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.1% C 0.225 H 311.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A542D9
RGBrgb(165, 66, 217)
HSLhsl(279, 67%, 55%)
HSVhsv(279, 70%, 85%)
CMYKcmyk(24%, 69.6%, 0%, 14.9%)
CIE-LABlab(48.14, 63.91, -59.79)
CIE-LCHlch(48.14, 87.52, 316.91°)
OKLaboklab(58.12% 0.1489 -0.169)
OKLCHoklch(58.12% 0.225 311.4)
XYZxyz(29.9873, 16.9063, 67.3157)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542D9 #76D942
analogous
#5942D9 #A542D9 #D942C1
triadic
#A542D9 #D9A542 #42D9A5
tetradic
#A542D9 #D95942 #76D942 #42C1D9
square
#A542D9 #D95942 #76D942 #42C1D9
split-complementary
#A542D9 #C1D942 #42D959
monochromatic
#611B86 #8625B9 #A542D9 #BD75E3 #D6A8ED

Accessibility & contrast

On white

4.79
#A542D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A542D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542D9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542D9#FFFFFF#000000##FFFFFF
##A542D91.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#2E74D6
Tritanopia (blue-blind)
#9E6389
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a542d9;
/* rgb */ color: rgb(165, 66, 217);
/* oklch */ color: oklch(58.1% 0.225 311.4);
Tailwind
colors: {
  custom: {
    50: '#c47ee6',
    500: '#a542d9',
    950: '#000000',
  },
}
SCSS
$custom: #a542d9;
$custom-light: #c47ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#a542d9",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 279.338,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58116,
    "c": 0.2252,
    "h": 311.4
  },
  "luminance": 0.16906
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A542D9

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

Preview Lab → · Contrast checker → · Palette generator →

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