#A42CA8#A42CA8

#A42CA8 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.207 H 326.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#A42CA8
RGBrgb(164, 44, 168)
HSLhsl(298, 58%, 42%)
HSVhsv(298, 74%, 66%)
CMYKcmyk(2.4%, 73.8%, 0%, 34.1%)
CIE-LABlab(42.03, 62.68, -41.03)
CIE-LCHlch(42.03, 74.91, 326.79°)
OKLaboklab(52.76% 0.173 -0.114)
OKLCHoklch(52.76% 0.207 326.6)
XYZxyz(23.2780, 12.5226, 38.2292)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42CA8 #30A82C
analogous
#662CA8 #A42CA8 #A82C6E
triadic
#A42CA8 #A8A42C #2CA8A4
tetradic
#A42CA8 #A8662C #30A82C #2C6EA8
square
#A42CA8 #A8662C #30A82C #2C6EA8
split-complementary
#A42CA8 #6EA82C #2CA866
monochromatic
#451347 #751F78 #A42CA8 #C943CE #D774DB

Accessibility & contrast

On white

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

On black

3.50
#A42CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##A42CA8#FFFFFF#000000##FFFFFF
##A42CA81.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095AAB
Deuteranopia (green-blind)
#4A68A5
Tritanopia (blue-blind)
#A94168
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42ca8;
/* rgb */ color: rgb(164, 44, 168);
/* oklch */ color: oklch(52.8% 0.207 326.6);
Tailwind
colors: {
  custom: {
    50: '#c372c2',
    500: '#a42ca8',
    950: '#000000',
  },
}
SCSS
$custom: #a42ca8;
$custom-light: #c372c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ca8",
  "rgb": {
    "r": 164,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 298.065,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52758,
    "c": 0.20712,
    "h": 326.6
  },
  "luminance": 0.12521
}

Semantic roles & 50–950 ramp

primary
#A42CA8
secondary
#70C26E
accent
#E2464B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A42CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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