#AF4FA4#AF4FA4

#AF4FA4 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 57.9% C 0.163 H 332.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA4
RGBrgb(175, 79, 164)
HSLhsl(307, 38%, 50%)
HSVhsv(307, 55%, 69%)
CMYKcmyk(0%, 54.9%, 6.3%, 31.4%)
CIE-LABlab(48.75, 50.32, -27.99)
CIE-LCHlch(48.75, 57.58, 330.92°)
OKLaboklab(57.9% 0.1438 -0.0764)
OKLCHoklch(57.9% 0.163 332)
XYZxyz(27.1759, 17.3881, 37.0396)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA4 #4FAF5A
analogous
#8A4FAF #AF4FA4 #AF4F74
triadic
#AF4FA4 #A4AF4F #4FA4AF
tetradic
#AF4FA4 #AF8A4F #4FAF5A #4F74AF
square
#AF4FA4 #AF8A4F #4FAF5A #4F74AF
split-complementary
#AF4FA4 #74AF4F #4FAF8A
monochromatic
#5B2955 #853C7C #AF4FA4 #C279BA #D5A3D0

Accessibility & contrast

On white

4.69
#AF4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF4FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA4
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA4#FFFFFF#000000##FFFFFF
##AF4FA41.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6BA7
Deuteranopia (green-blind)
#6979A1
Tritanopia (blue-blind)
#B65672
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa4;
/* rgb */ color: rgb(175, 79, 164);
/* oklch */ color: oklch(57.9% 0.163 332.0);
Tailwind
colors: {
  custom: {
    50: '#c985bf',
    500: '#af4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa4;
$custom-light: #c985bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa4",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 306.875,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.579,
    "c": 0.16277,
    "h": 332
  },
  "luminance": 0.17386
}

Semantic roles & 50–950 ramp

primary
#AF4FA4
secondary
#97C39C
accent
#CE675A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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