#A42E98#A42E98

#A42E98 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.193 H 332.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#A42E98
RGBrgb(164, 46, 152)
HSLhsl(306, 56%, 41%)
HSVhsv(306, 72%, 64%)
CMYKcmyk(0%, 72%, 7.3%, 35.7%)
CIE-LABlab(41.40, 59.37, -32.44)
CIE-LCHlch(41.40, 67.66, 331.35°)
OKLaboklab(52.02% 0.1707 -0.0891)
OKLCHoklch(52.02% 0.193 332.4)
XYZxyz(21.9544, 12.1153, 30.8819)
Luminance0.1211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E98 #2EA43A
analogous
#752EA4 #A42E98 #A42E5D
triadic
#A42E98 #98A42E #2E98A4
tetradic
#A42E98 #A4752E #2EA43A #2E5DA4
square
#A42E98 #A4752E #2EA43A #2E5DA4
split-complementary
#A42E98 #5DA42E #2EA475
monochromatic
#44133F #74216C #A42E98 #CB45BD #D874CE

Accessibility & contrast

On white

6.14
#A42E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#A42E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E98
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E98#FFFFFF#000000##FFFFFF
##A42E981.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a42e98;
/* rgb */ color: rgb(164, 46, 152);
/* oklch */ color: oklch(52.0% 0.193 332.4);
Tailwind
colors: {
  custom: {
    50: '#c272b6',
    500: '#a42e98',
    950: '#000000',
  },
}
SCSS
$custom: #a42e98;
$custom-light: #c272b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e98",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 306.102,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52019,
    "c": 0.19253,
    "h": 332.4
  },
  "luminance": 0.12114
}

Semantic roles & 50–950 ramp

primary
#A42E98
secondary
#6EC076
accent
#DF5848
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42E98

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

Preview Lab → · Contrast checker → · Palette generator →

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