#A42F94#A42F94

#A42F94 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.9% C 0.188 H 334.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A42F94
RGBrgb(164, 47, 148)
HSLhsl(308, 55%, 41%)
HSVhsv(308, 71%, 64%)
CMYKcmyk(0%, 71.3%, 9.8%, 35.7%)
CIE-LABlab(41.32, 58.39, -30.15)
CIE-LCHlch(41.32, 65.71, 332.69°)
OKLaboklab(51.9% 0.1693 -0.0825)
OKLCHoklch(51.9% 0.188 334)
XYZxyz(21.6718, 12.0655, 29.1987)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F94 #2FA43F
analogous
#7A2FA4 #A42F94 #A42F5A
triadic
#A42F94 #94A42F #2F94A4
tetradic
#A42F94 #A47A2F #2FA43F #2F5AA4
square
#A42F94 #A47A2F #2FA43F #2F5AA4
split-complementary
#A42F94 #5AA42F #2FA47A
monochromatic
#45143E #742169 #A42F94 #CA46B8 #D876CA

Accessibility & contrast

On white

6.15
#A42F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A42F94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F94
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F94#FFFFFF#000000##FFFFFF
##A42F941.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5797
Deuteranopia (green-blind)
#566891
Tritanopia (blue-blind)
#AC395E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42f94;
/* rgb */ color: rgb(164, 47, 148);
/* oklch */ color: oklch(51.9% 0.188 334.0);
Tailwind
colors: {
  custom: {
    50: '#c272b4',
    500: '#a42f94',
    950: '#000000',
  },
}
SCSS
$custom: #a42f94;
$custom-light: #c272b4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f94",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 308.205,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51896,
    "c": 0.18836,
    "h": 334
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#A42F94
secondary
#6FC07A
accent
#DF5E49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F94

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

Preview Lab → · Contrast checker → · Palette generator →

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