#AF4FA3#AF4FA3

#AF4FA3 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.9% C 0.162 H 332.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA3
RGBrgb(175, 79, 163)
HSLhsl(308, 38%, 50%)
HSVhsv(308, 55%, 69%)
CMYKcmyk(0%, 54.9%, 6.9%, 31.4%)
CIE-LABlab(48.70, 50.15, -27.46)
CIE-LCHlch(48.70, 57.18, 331.29°)
OKLaboklab(57.85% 0.1436 -0.0749)
OKLCHoklch(57.85% 0.162 332.5)
XYZxyz(27.0860, 17.3521, 36.5659)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA3 #4FAF5B
analogous
#8B4FAF #AF4FA3 #AF4F73
triadic
#AF4FA3 #A3AF4F #4FA3AF
tetradic
#AF4FA3 #AF8B4F #4FAF5B #4F73AF
square
#AF4FA3 #AF8B4F #4FAF5B #4F73AF
split-complementary
#AF4FA3 #73AF4F #4FAF8B
monochromatic
#5B2954 #853C7C #AF4FA3 #C279B9 #D5A3CF

Accessibility & contrast

On white

4.70
#AF4FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF4FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA3#FFFFFF#000000##FFFFFF
##AF4FA31.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4fa3;
/* rgb */ color: rgb(175, 79, 163);
/* oklch */ color: oklch(57.9% 0.162 332.5);
Tailwind
colors: {
  custom: {
    50: '#c985be',
    500: '#af4fa3',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa3;
$custom-light: #c985be;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa3",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 307.5,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57853,
    "c": 0.16193,
    "h": 332.5
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#AF4FA3
secondary
#97C39D
accent
#CE695A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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