#AF4E9F#AF4E9F

#AF4E9F is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.5% C 0.160 H 334.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF4E9F
RGBrgb(175, 78, 159)
HSLhsl(310, 38%, 50%)
HSVhsv(310, 55%, 69%)
CMYKcmyk(0%, 55.4%, 9.1%, 31.4%)
CIE-LABlab(48.35, 49.95, -25.65)
CIE-LCHlch(48.35, 56.16, 332.82°)
OKLaboklab(57.53% 0.1443 -0.0697)
OKLCHoklch(57.53% 0.16 334.2)
XYZxyz(26.6617, 17.0678, 34.6843)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9F #4EAF5E
analogous
#8F4EAF #AF4E9F #AF4E6F
triadic
#AF4E9F #9FAF4E #4E9FAF
tetradic
#AF4E9F #AF8F4E #4EAF5E #4E6FAF
square
#AF4E9F #AF8F4E #4EAF5E #4E6FAF
split-complementary
#AF4E9F #6FAF4E #4EAF8F
monochromatic
#5A2852 #853B79 #AF4E9F #C378B6 #D6A2CD

Accessibility & contrast

On white

4.76
#AF4E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF4E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E9F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E9F#FFFFFF#000000##FFFFFF
##AF4E9F1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6AA2
Deuteranopia (green-blind)
#6A789C
Tritanopia (blue-blind)
#B6546F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4e9f;
/* rgb */ color: rgb(175, 78, 159);
/* oklch */ color: oklch(57.5% 0.160 334.2);
Tailwind
colors: {
  custom: {
    50: '#c984bb',
    500: '#af4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9f;
$custom-light: #c984bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9f",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 309.897,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57533,
    "c": 0.16021,
    "h": 334.2
  },
  "luminance": 0.17066
}

Semantic roles & 50–950 ramp

primary
#AF4E9F
secondary
#96C39E
accent
#CE6D5A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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