#AF489F#AF489F

#AF489F is a mid, vivid purple. Relative luminance 0.163; OKLCH L 56.8% C 0.170 H 334.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF489F
RGBrgb(175, 72, 159)
HSLhsl(309, 42%, 48%)
HSVhsv(309, 59%, 69%)
CMYKcmyk(0%, 58.9%, 9.1%, 31.4%)
CIE-LABlab(47.31, 52.76, -27.26)
CIE-LCHlch(47.31, 59.39, 332.67°)
OKLaboklab(56.77% 0.1524 -0.0742)
OKLCHoklch(56.77% 0.17 334)
XYZxyz(26.2547, 16.2538, 34.5487)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF489F #48AF58
analogous
#8B48AF #AF489F #AF486B
triadic
#AF489F #9FAF48 #489FAF
tetradic
#AF489F #AF8B48 #48AF58 #486BAF
square
#AF489F #AF8B48 #48AF58 #486BAF
split-complementary
#AF489F #6BAF48 #48AF8B
monochromatic
#582450 #843678 #AF489F #C470B7 #D69BCD

Accessibility & contrast

On white

4.94
#AF489F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF489F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF489F
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF489F#FFFFFF#000000##FFFFFF
##AF489F1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4767A2
Deuteranopia (green-blind)
#66769C
Tritanopia (blue-blind)
#B74F6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af489f;
/* rgb */ color: rgb(175, 72, 159);
/* oklch */ color: oklch(56.8% 0.170 334.0);
Tailwind
colors: {
  custom: {
    50: '#ca81bb',
    500: '#af489f',
    950: '#000000',
  },
}
SCSS
$custom: #af489f;
$custom-light: #ca81bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af489f",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 309.32,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56768,
    "c": 0.16956,
    "h": 334
  },
  "luminance": 0.16252
}

Semantic roles & 50–950 ramp

primary
#AF489F
secondary
#90C298
accent
#D26956
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF489F

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

Preview Lab → · Contrast checker → · Palette generator →

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