#AF409D#AF409D

#AF409D is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.7% C 0.180 H 334.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF409D
RGBrgb(175, 64, 157)
HSLhsl(310, 46%, 47%)
HSVhsv(310, 63%, 69%)
CMYKcmyk(0%, 63.4%, 10.3%, 31.4%)
CIE-LABlab(45.93, 55.96, -28.22)
CIE-LCHlch(45.93, 62.67, 333.24°)
OKLaboklab(55.73% 0.1624 -0.0769)
OKLCHoklch(55.73% 0.18 334.7)
XYZxyz(25.5986, 15.2171, 33.4807)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF409D #40AF52
analogous
#8A40AF #AF409D #AF4065
triadic
#AF409D #9DAF40 #409DAF
tetradic
#AF409D #AF8A40 #40AF52 #4065AF
square
#AF409D #AF8A40 #40AF52 #4065AF
split-complementary
#AF409D #65AF40 #40AF8A
monochromatic
#551F4D #823075 #AF409D #C765B7 #D792CC

Accessibility & contrast

On white

5.19
#AF409D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AF409D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF409D
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF409D#FFFFFF#000000##FFFFFF
##AF409D1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F62A0
Deuteranopia (green-blind)
#63739A
Tritanopia (blue-blind)
#B74769
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af409d;
/* rgb */ color: rgb(175, 64, 157);
/* oklch */ color: oklch(55.7% 0.180 334.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cba',
    500: '#af409d',
    950: '#000000',
  },
}
SCSS
$custom: #af409d;
$custom-light: #ca7cba;
$custom-dark: #000000;
JSON
{
  "hex": "#af409d",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 309.73,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55732,
    "c": 0.17971,
    "h": 334.7
  },
  "luminance": 0.15215
}

Semantic roles & 50–950 ramp

primary
#AF409D
secondary
#88C392
accent
#D66752
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF409D

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

Preview Lab → · Contrast checker → · Palette generator →

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