#A42FA8#A42FA8

#A42FA8 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.204 H 326.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#A42FA8
RGBrgb(164, 47, 168)
HSLhsl(298, 56%, 42%)
HSVhsv(298, 72%, 66%)
CMYKcmyk(2.4%, 72%, 0%, 34.1%)
CIE-LABlab(42.39, 61.66, -40.47)
CIE-LCHlch(42.39, 73.76, 326.72°)
OKLaboklab(53.01% 0.1701 -0.1123)
OKLCHoklch(53.01% 0.204 326.6)
XYZxyz(23.3938, 12.7543, 38.2679)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA8 #33A82F
analogous
#682FA8 #A42FA8 #A82F6F
triadic
#A42FA8 #A8A42F #2FA8A4
tetradic
#A42FA8 #A8682F #33A82F #2F6FA8
square
#A42FA8 #A8682F #33A82F #2F6FA8
split-complementary
#A42FA8 #6FA82F #2FA868
monochromatic
#471448 #752278 #A42FA8 #C848CC #D678D9

Accessibility & contrast

On white

5.91
#A42FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#A42FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FA8
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA8#FFFFFF#000000##FFFFFF
##A42FA81.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125BAB
Deuteranopia (green-blind)
#4C69A5
Tritanopia (blue-blind)
#A84269
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42fa8;
/* rgb */ color: rgb(164, 47, 168);
/* oklch */ color: oklch(53.0% 0.204 326.6);
Tailwind
colors: {
  custom: {
    50: '#c373c2',
    500: '#a42fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa8;
$custom-light: #c373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa8",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 298.017,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53012,
    "c": 0.20385,
    "h": 326.6
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#A42FA8
secondary
#74C171
accent
#E0484D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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