#A42FA4#A42FA4

#A42FA4 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.201 H 328.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#A42FA4
RGBrgb(164, 47, 164)
HSLhsl(300, 55%, 41%)
HSVhsv(300, 71%, 64%)
CMYKcmyk(0%, 71.3%, 0%, 35.7%)
CIE-LABlab(42.17, 60.98, -38.44)
CIE-LCHlch(42.17, 72.09, 327.78°)
OKLaboklab(52.78% 0.1701 -0.1064)
OKLCHoklch(52.78% 0.201 328)
XYZxyz(23.0269, 12.6075, 36.3354)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA4 #2FA42F
analogous
#6A2FA4 #A42FA4 #A42F6A
triadic
#A42FA4 #A4A42F #2FA4A4
tetradic
#A42FA4 #A46A2F #2FA42F #2F6AA4
square
#A42FA4 #A46A2F #2FA42F #2F6AA4
split-complementary
#A42FA4 #6AA42F #2FA46A
monochromatic
#451445 #742174 #A42FA4 #CA46CA #D876D8

Accessibility & contrast

On white

5.96
#A42FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A42FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FA4
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA4#FFFFFF#000000##FFFFFF
##A42FA41.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#4E69A1
Tritanopia (blue-blind)
#A94166
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42fa4;
/* rgb */ color: rgb(164, 47, 164);
/* oklch */ color: oklch(52.8% 0.201 328.0);
Tailwind
colors: {
  custom: {
    50: '#c373bf',
    500: '#a42fa4',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa4;
$custom-light: #c373bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa4",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 300,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52778,
    "c": 0.20067,
    "h": 328
  },
  "luminance": 0.12606
}

Semantic roles & 50–950 ramp

primary
#A42FA4
secondary
#6FC06F
accent
#DF4949
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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