#A542DF#A542DF

#A542DF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.231 H 309.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A542DF
RGBrgb(165, 66, 223)
HSLhsl(278, 71%, 57%)
HSVhsv(278, 70%, 87%)
CMYKcmyk(26%, 70.4%, 0%, 12.5%)
CIE-LABlab(48.54, 65.17, -62.56)
CIE-LCHlch(48.54, 90.34, 316.17°)
OKLaboklab(58.53% 0.1481 -0.1771)
OKLCHoklch(58.53% 0.231 309.9)
XYZxyz(30.7819, 17.2241, 71.5008)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542DF #7CDF42
analogous
#5742DF #A542DF #DF42CB
triadic
#A542DF #DFA542 #42DFA5
tetradic
#A542DF #DF5742 #7CDF42 #42CBDF
square
#A542DF #DF5742 #7CDF42 #42CBDF
split-complementary
#A542DF #CBDF42 #42DF57
monochromatic
#63188E #8721C3 #A542DF #BE76E8 #D7ABF1

Accessibility & contrast

On white

4.72
#A542DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A542DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542DF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542DF#FFFFFF#000000##FFFFFF
##A542DF1.004.724.444.72
#FFFFFF4.721.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#2375DC
Tritanopia (blue-blind)
#9D658C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a542df;
/* rgb */ color: rgb(165, 66, 223);
/* oklch */ color: oklch(58.5% 0.231 309.9);
Tailwind
colors: {
  custom: {
    50: '#c47eea',
    500: '#a542df',
    950: '#000000',
  },
}
SCSS
$custom: #a542df;
$custom-light: #c47eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a542df",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 277.834,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58527,
    "c": 0.2309,
    "h": 309.9
  },
  "luminance": 0.17223
}

Semantic roles & 50–950 ramp

primary
#A542DF
secondary
#B6DF9E
accent
#EE3A7C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542DF

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

Preview Lab → · Contrast checker → · Palette generator →

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