#AF429D#AF429D

#AF429D is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.177 H 334.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF429D
RGBrgb(175, 66, 157)
HSLhsl(310, 45%, 47%)
HSVhsv(310, 62%, 69%)
CMYKcmyk(0%, 62.3%, 10.3%, 31.4%)
CIE-LABlab(46.24, 55.10, -27.73)
CIE-LCHlch(46.24, 61.69, 333.28°)
OKLaboklab(55.96% 0.1599 -0.0755)
OKLCHoklch(55.96% 0.177 334.7)
XYZxyz(25.7134, 15.4467, 33.5190)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF429D #42AF54
analogous
#8A42AF #AF429D #AF4267
triadic
#AF429D #9DAF42 #429DAF
tetradic
#AF429D #AF8A42 #42AF54 #4267AF
square
#AF429D #AF8A42 #42AF54 #4267AF
split-complementary
#AF429D #67AF42 #42AF8A
monochromatic
#56204D #833175 #AF429D #C668B7 #D795CC

Accessibility & contrast

On white

5.14
#AF429D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF429D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF429D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF429D#FFFFFF#000000##FFFFFF
##AF429D1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4163A0
Deuteranopia (green-blind)
#64739A
Tritanopia (blue-blind)
#B74969
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af429d;
/* rgb */ color: rgb(175, 66, 157);
/* oklch */ color: oklch(56.0% 0.177 334.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dba',
    500: '#af429d',
    950: '#000000',
  },
}
SCSS
$custom: #af429d;
$custom-light: #ca7dba;
$custom-dark: #000000;
JSON
{
  "hex": "#af429d",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 157
  },
  "hsl": {
    "h": 309.908,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55958,
    "c": 0.17685,
    "h": 334.7
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#AF429D
secondary
#8AC294
accent
#D56853
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF429D

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

Preview Lab → · Contrast checker → · Palette generator →

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