#AF4FA9#AF4FA9

#AF4FA9 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.1% C 0.167 H 329.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA9
RGBrgb(175, 79, 169)
HSLhsl(304, 38%, 50%)
HSVhsv(304, 55%, 69%)
CMYKcmyk(0%, 54.9%, 3.4%, 31.4%)
CIE-LABlab(48.97, 51.19, -30.57)
CIE-LCHlch(48.97, 59.63, 329.15°)
OKLaboklab(58.14% 0.1445 -0.0838)
OKLCHoklch(58.14% 0.167 329.9)
XYZxyz(27.6364, 17.5723, 39.4646)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA9 #4FAF55
analogous
#854FAF #AF4FA9 #AF4F79
triadic
#AF4FA9 #A9AF4F #4FA9AF
tetradic
#AF4FA9 #AF854F #4FAF55 #4F79AF
square
#AF4FA9 #AF854F #4FAF55 #4F79AF
split-complementary
#AF4FA9 #79AF4F #4FAF85
monochromatic
#5B2958 #853C80 #AF4FA9 #C279BE #D5A3D2

Accessibility & contrast

On white

4.65
#AF4FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF4FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA9#FFFFFF#000000##FFFFFF
##AF4FA91.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496CAC
Deuteranopia (green-blind)
#6779A6
Tritanopia (blue-blind)
#B55875
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa9;
/* rgb */ color: rgb(175, 79, 169);
/* oklch */ color: oklch(58.1% 0.167 329.9);
Tailwind
colors: {
  custom: {
    50: '#c985c3',
    500: '#af4fa9',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa9;
$custom-light: #c985c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa9",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 303.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58142,
    "c": 0.16706,
    "h": 329.9
  },
  "luminance": 0.1757
}

Semantic roles & 50–950 ramp

primary
#AF4FA9
secondary
#97C39A
accent
#CE615A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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