#A42FA7#A42FA7

#A42FA7 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.203 H 326.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#A42FA7
RGBrgb(164, 47, 167)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(1.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(42.33, 61.49, -39.96)
CIE-LCHlch(42.33, 73.34, 326.98°)
OKLaboklab(52.95% 0.1701 -0.1109)
OKLCHoklch(52.95% 0.203 326.9)
XYZxyz(23.3010, 12.7172, 37.7791)
Luminance0.1272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA7 #32A72F
analogous
#682FA7 #A42FA7 #A72F6E
triadic
#A42FA7 #A7A42F #2FA7A4
tetradic
#A42FA7 #A7682F #32A72F #2F6EA7
square
#A42FA7 #A7682F #32A72F #2F6EA7
split-complementary
#A42FA7 #6EA72F #2FA768
monochromatic
#461447 #752277 #A42FA7 #C848CB #D678D9

Accessibility & contrast

On white

5.93
#A42FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42FA7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA7#FFFFFF#000000##FFFFFF
##A42FA71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#4C69A4
Tritanopia (blue-blind)
#A94268
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42fa7;
/* rgb */ color: rgb(164, 47, 167);
/* oklch */ color: oklch(53.0% 0.203 326.9);
Tailwind
colors: {
  custom: {
    50: '#c373c1',
    500: '#a42fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa7;
$custom-light: #c373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa7",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 298.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52953,
    "c": 0.20305,
    "h": 326.9
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#A42FA7
secondary
#73C171
accent
#DF484C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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