#AF4FA1#AF4FA1

#AF4FA1 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.160 H 333.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA1
RGBrgb(175, 79, 161)
HSLhsl(309, 38%, 50%)
HSVhsv(309, 55%, 69%)
CMYKcmyk(0%, 54.9%, 8%, 31.4%)
CIE-LABlab(48.61, 49.81, -26.42)
CIE-LCHlch(48.61, 56.38, 332.06°)
OKLaboklab(57.76% 0.1432 -0.0719)
OKLCHoklch(57.76% 0.16 333.3)
XYZxyz(26.9082, 17.2810, 35.6296)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA1 #4FAF5D
analogous
#8D4FAF #AF4FA1 #AF4F71
triadic
#AF4FA1 #A1AF4F #4FA1AF
tetradic
#AF4FA1 #AF8D4F #4FAF5D #4F71AF
square
#AF4FA1 #AF8D4F #4FAF5D #4F71AF
split-complementary
#AF4FA1 #71AF4F #4FAF8D
monochromatic
#5B2953 #853C7A #AF4FA1 #C279B8 #D5A3CE

Accessibility & contrast

On white

4.71
#AF4FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF4FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA1#FFFFFF#000000##FFFFFF
##AF4FA11.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA4
Deuteranopia (green-blind)
#6A799E
Tritanopia (blue-blind)
#B65571
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4fa1;
/* rgb */ color: rgb(175, 79, 161);
/* oklch */ color: oklch(57.8% 0.160 333.3);
Tailwind
colors: {
  custom: {
    50: '#c985bd',
    500: '#af4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa1;
$custom-light: #c985bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa1",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 308.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57758,
    "c": 0.16025,
    "h": 333.3
  },
  "luminance": 0.17279
}

Semantic roles & 50–950 ramp

primary
#AF4FA1
secondary
#97C39E
accent
#CE6B5A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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