#A542DD#A542DD

#A542DD is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.4% C 0.229 H 310.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A542DD
RGBrgb(165, 66, 221)
HSLhsl(278, 70%, 56%)
HSVhsv(278, 70%, 87%)
CMYKcmyk(25.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(48.41, 64.75, -61.64)
CIE-LCHlch(48.41, 89.40, 316.41°)
OKLaboklab(58.39% 0.1484 -0.1744)
OKLCHoklch(58.39% 0.229 310.4)
XYZxyz(30.5139, 17.1169, 70.0890)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542DD #7ADD42
analogous
#5842DD #A542DD #DD42C7
triadic
#A542DD #DDA542 #42DDA5
tetradic
#A542DD #DD5842 #7ADD42 #42C7DD
square
#A542DD #DD5842 #7ADD42 #42C7DD
split-complementary
#A542DD #C7DD42 #42DD58
monochromatic
#62198C #8722BF #A542DD #BE76E6 #D6AAF0

Accessibility & contrast

On white

4.75
#A542DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#A542DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542DD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542DD#FFFFFF#000000##FFFFFF
##A542DD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#2775DA
Tritanopia (blue-blind)
#9D648B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a542dd;
/* rgb */ color: rgb(165, 66, 221);
/* oklch */ color: oklch(58.4% 0.229 310.4);
Tailwind
colors: {
  custom: {
    50: '#c47ee8',
    500: '#a542dd',
    950: '#000000',
  },
}
SCSS
$custom: #a542dd;
$custom-light: #c47ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a542dd",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 278.323,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58389,
    "c": 0.229,
    "h": 310.4
  },
  "luminance": 0.17116
}

Semantic roles & 50–950 ramp

primary
#A542DD
secondary
#B5DD9D
accent
#EC3B7B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542DD

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

Preview Lab → · Contrast checker → · Palette generator →

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