#A42F98#A42F98

#A42F98 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.1% C 0.191 H 332.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A42F98
RGBrgb(164, 47, 152)
HSLhsl(306, 55%, 41%)
HSVhsv(306, 71%, 64%)
CMYKcmyk(0%, 71.3%, 7.3%, 35.7%)
CIE-LABlab(41.52, 59.02, -32.25)
CIE-LCHlch(41.52, 67.26, 331.35°)
OKLaboklab(52.11% 0.1697 -0.0885)
OKLCHoklch(52.11% 0.191 332.4)
XYZxyz(21.9939, 12.1943, 30.8950)
Luminance0.1219 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F98 #2FA43B
analogous
#762FA4 #A42F98 #A42F5E
triadic
#A42F98 #98A42F #2F98A4
tetradic
#A42F98 #A4762F #2FA43B #2F5EA4
square
#A42F98 #A4762F #2FA43B #2F5EA4
split-complementary
#A42F98 #5EA42F #2FA476
monochromatic
#451440 #74216C #A42F98 #CA46BD #D876CE

Accessibility & contrast

On white

6.11
#A42F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A42F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F98
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F98#FFFFFF#000000##FFFFFF
##A42F981.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#546895
Tritanopia (blue-blind)
#AB3B60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f98;
/* rgb */ color: rgb(164, 47, 152);
/* oklch */ color: oklch(52.1% 0.191 332.4);
Tailwind
colors: {
  custom: {
    50: '#c273b6',
    500: '#a42f98',
    950: '#000000',
  },
}
SCSS
$custom: #a42f98;
$custom-light: #c273b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f98",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 306.154,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52108,
    "c": 0.19136,
    "h": 332.4
  },
  "luminance": 0.12193
}

Semantic roles & 50–950 ramp

primary
#A42F98
secondary
#6FC077
accent
#DF5849
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F98

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

Preview Lab → · Contrast checker → · Palette generator →

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