#AF409F#AF409F

#AF409F is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.8% C 0.181 H 333.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF409F
RGBrgb(175, 64, 159)
HSLhsl(309, 46%, 47%)
HSVhsv(309, 63%, 69%)
CMYKcmyk(0%, 63.4%, 9.1%, 31.4%)
CIE-LABlab(46.02, 56.28, -29.26)
CIE-LCHlch(46.02, 63.43, 332.53°)
OKLaboklab(55.83% 0.1627 -0.0799)
OKLCHoklch(55.83% 0.181 333.9)
XYZxyz(25.7707, 15.2860, 34.3873)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF409F #40AF50
analogous
#8840AF #AF409F #AF4067
triadic
#AF409F #9FAF40 #409FAF
tetradic
#AF409F #AF8840 #40AF50 #4067AF
square
#AF409F #AF8840 #40AF50 #4067AF
split-complementary
#AF409F #67AF40 #40AF88
monochromatic
#551F4E #823076 #AF409F #C765B9 #D792CD

Accessibility & contrast

On white

5.18
#AF409F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF409F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF409F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF409F#FFFFFF#000000##FFFFFF
##AF409F1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E63A2
Deuteranopia (green-blind)
#62739C
Tritanopia (blue-blind)
#B7486A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af409f;
/* rgb */ color: rgb(175, 64, 159);
/* oklch */ color: oklch(55.8% 0.181 333.9);
Tailwind
colors: {
  custom: {
    50: '#ca7cbb',
    500: '#af409f',
    950: '#000000',
  },
}
SCSS
$custom: #af409f;
$custom-light: #ca7cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af409f",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 308.649,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5583,
    "c": 0.18125,
    "h": 333.9
  },
  "luminance": 0.15284
}

Semantic roles & 50–950 ramp

primary
#AF409F
secondary
#88C391
accent
#D66552
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF409F

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

Preview Lab → · Contrast checker → · Palette generator →

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