#A42FA6#A42FA6

#A42FA6 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.202 H 327.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A42FA6
RGBrgb(164, 47, 166)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(1.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(42.28, 61.32, -39.46)
CIE-LCHlch(42.28, 72.92, 327.24°)
OKLaboklab(52.89% 0.1701 -0.1094)
OKLCHoklch(52.89% 0.202 327.3)
XYZxyz(23.2089, 12.6803, 37.2941)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA6 #31A62F
analogous
#692FA6 #A42FA6 #A62F6C
triadic
#A42FA6 #A6A42F #2FA6A4
tetradic
#A42FA6 #A6692F #31A62F #2F6CA6
square
#A42FA6 #A6692F #31A62F #2F6CA6
split-complementary
#A42FA6 #6CA62F #2FA669
monochromatic
#461447 #752176 #A42FA6 #C947CB #D777D8

Accessibility & contrast

On white

5.94
#A42FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#A42FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FA6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA6#FFFFFF#000000##FFFFFF
##A42FA61.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#A94168
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42fa6;
/* rgb */ color: rgb(164, 47, 166);
/* oklch */ color: oklch(52.9% 0.202 327.3);
Tailwind
colors: {
  custom: {
    50: '#c373c1',
    500: '#a42fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa6;
$custom-light: #c373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa6",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 298.992,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52894,
    "c": 0.20225,
    "h": 327.3
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#A42FA6
secondary
#72C170
accent
#DF494B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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