#A42FA2#A42FA2

#A42FA2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.7% C 0.199 H 328.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#A42FA2
RGBrgb(164, 47, 162)
HSLhsl(301, 55%, 41%)
HSVhsv(301, 71%, 64%)
CMYKcmyk(0%, 71.3%, 1.2%, 35.7%)
CIE-LABlab(42.06, 60.65, -37.42)
CIE-LCHlch(42.06, 71.26, 328.33°)
OKLaboklab(52.66% 0.1701 -0.1035)
OKLCHoklch(52.66% 0.199 328.7)
XYZxyz(22.8477, 12.5358, 35.3917)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA2 #2FA431
analogous
#6C2FA4 #A42FA2 #A42F68
triadic
#A42FA2 #A2A42F #2FA2A4
tetradic
#A42FA2 #A46C2F #2FA431 #2F68A4
square
#A42FA2 #A46C2F #2FA431 #2F68A4
split-complementary
#A42FA2 #68A42F #2FA46C
monochromatic
#451444 #742173 #A42FA2 #CA46C8 #D876D6

Accessibility & contrast

On white

5.99
#A42FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A42FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FA2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA2#FFFFFF#000000##FFFFFF
##A42FA21.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#4F699F
Tritanopia (blue-blind)
#A94065
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42fa2;
/* rgb */ color: rgb(164, 47, 162);
/* oklch */ color: oklch(52.7% 0.199 328.7);
Tailwind
colors: {
  custom: {
    50: '#c273be',
    500: '#a42fa2',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa2;
$custom-light: #c273be;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa2",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 301.026,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52663,
    "c": 0.19909,
    "h": 328.7
  },
  "luminance": 0.12534
}

Semantic roles & 50–950 ramp

primary
#A42FA2
secondary
#6FC071
accent
#DF4C49
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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