#AF4EA9#AF4EA9

#AF4EA9 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.0% C 0.169 H 329.9°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF4EA9
RGBrgb(175, 78, 169)
HSLhsl(304, 38%, 50%)
HSVhsv(304, 55%, 69%)
CMYKcmyk(0%, 55.4%, 3.4%, 31.4%)
CIE-LABlab(48.80, 51.67, -30.85)
CIE-LCHlch(48.80, 60.18, 329.16°)
OKLaboklab(58.01% 0.1459 -0.0845)
OKLCHoklch(58.01% 0.169 329.9)
XYZxyz(27.5648, 17.4291, 39.4407)
Luminance0.1743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EA9 #4EAF54
analogous
#844EAF #AF4EA9 #AF4E79
triadic
#AF4EA9 #A9AF4E #4EA9AF
tetradic
#AF4EA9 #AF844E #4EAF54 #4E79AF
square
#AF4EA9 #AF844E #4EAF54 #4E79AF
split-complementary
#AF4EA9 #79AF4E #4EAF84
monochromatic
#5A2857 #853B80 #AF4EA9 #C378BE #D6A2D2

Accessibility & contrast

On white

4.68
#AF4EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF4EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EA9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EA9#FFFFFF#000000##FFFFFF
##AF4EA91.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486BAC
Deuteranopia (green-blind)
#6679A6
Tritanopia (blue-blind)
#B55774
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4ea9;
/* rgb */ color: rgb(175, 78, 169);
/* oklch */ color: oklch(58.0% 0.169 329.9);
Tailwind
colors: {
  custom: {
    50: '#c984c3',
    500: '#af4ea9',
    950: '#000000',
  },
}
SCSS
$custom: #af4ea9;
$custom-light: #c984c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ea9",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 303.711,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58012,
    "c": 0.16862,
    "h": 329.9
  },
  "luminance": 0.17427
}

Semantic roles & 50–950 ramp

primary
#AF4EA9
secondary
#96C399
accent
#CE615A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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