#A42FA5#A42FA5

#A42FA5 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.201 H 327.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A42FA5
RGBrgb(164, 47, 165)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(0.6%, 71.5%, 0%, 35.3%)
CIE-LABlab(42.22, 61.15, -38.95)
CIE-LCHlch(42.22, 72.50, 327.51°)
OKLaboklab(52.84% 0.1701 -0.1079)
OKLCHoklch(52.84% 0.201 327.6)
XYZxyz(23.1176, 12.6438, 36.8129)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA5 #30A52F
analogous
#692FA5 #A42FA5 #A52F6B
triadic
#A42FA5 #A5A42F #2FA5A4
tetradic
#A42FA5 #A5692F #30A52F #2F6BA5
square
#A42FA5 #A5692F #30A52F #2F6BA5
split-complementary
#A42FA5 #6BA52F #2FA569
monochromatic
#451446 #752175 #A42FA5 #C947CB #D776D8

Accessibility & contrast

On white

5.95
#A42FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42FA5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA5#FFFFFF#000000##FFFFFF
##A42FA51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA8
Deuteranopia (green-blind)
#4D69A2
Tritanopia (blue-blind)
#A94167
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42fa5;
/* rgb */ color: rgb(164, 47, 165);
/* oklch */ color: oklch(52.8% 0.201 327.6);
Tailwind
colors: {
  custom: {
    50: '#c373c0',
    500: '#a42fa5',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa5;
$custom-light: #c373c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa5",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 299.492,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52836,
    "c": 0.20146,
    "h": 327.6
  },
  "luminance": 0.12642
}

Semantic roles & 50–950 ramp

primary
#A42FA5
secondary
#70C070
accent
#DF494A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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