#A42EA8#A42EA8

#A42EA8 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.205 H 326.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A42EA8
RGBrgb(164, 46, 168)
HSLhsl(298, 57%, 42%)
HSVhsv(298, 73%, 66%)
CMYKcmyk(2.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(42.27, 62.01, -40.66)
CIE-LCHlch(42.27, 74.15, 326.75°)
OKLaboklab(52.93% 0.1711 -0.1129)
OKLCHoklch(52.93% 0.205 326.6)
XYZxyz(23.3543, 12.6753, 38.2547)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EA8 #32A82E
analogous
#672EA8 #A42EA8 #A82E6F
triadic
#A42EA8 #A8A42E #2EA8A4
tetradic
#A42EA8 #A8672E #32A82E #2E6FA8
square
#A42EA8 #A8672E #32A82E #2E6FA8
split-complementary
#A42EA8 #6FA82E #2EA867
monochromatic
#461448 #752178 #A42EA8 #C847CD #D677DA

Accessibility & contrast

On white

5.94
#A42EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A42EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EA8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EA8#FFFFFF#000000##FFFFFF
##A42EA81.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAB
Deuteranopia (green-blind)
#4B69A5
Tritanopia (blue-blind)
#A84268
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42ea8;
/* rgb */ color: rgb(164, 46, 168);
/* oklch */ color: oklch(52.9% 0.205 326.6);
Tailwind
colors: {
  custom: {
    50: '#c373c2',
    500: '#a42ea8',
    950: '#000000',
  },
}
SCSS
$custom: #a42ea8;
$custom-light: #c373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ea8",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 298.033,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.20496,
    "h": 326.6
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#A42EA8
secondary
#73C270
accent
#E0484D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A42EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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