#AF419E#AF419E

#AF419E is a mid, vivid purple. Relative luminance 0.154; OKLCH L 55.9% C 0.179 H 334.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF419E
RGBrgb(175, 65, 158)
HSLhsl(309, 46%, 47%)
HSVhsv(309, 63%, 69%)
CMYKcmyk(0%, 62.9%, 9.7%, 31.4%)
CIE-LABlab(46.13, 55.69, -28.50)
CIE-LCHlch(46.13, 62.56, 332.90°)
OKLaboklab(55.89% 0.1613 -0.0777)
OKLCHoklch(55.89% 0.179 334.3)
XYZxyz(25.7412, 15.3652, 33.9512)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF419E #41AF52
analogous
#8941AF #AF419E #AF4167
triadic
#AF419E #9EAF41 #419EAF
tetradic
#AF419E #AF8941 #41AF52 #4167AF
square
#AF419E #AF8941 #41AF52 #4167AF
split-complementary
#AF419E #67AF41 #41AF89
monochromatic
#56204D #823076 #AF419E #C667B8 #D793CD

Accessibility & contrast

On white

5.16
#AF419E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AF419E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF419E
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF419E#FFFFFF#000000##FFFFFF
##AF419E1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4063A1
Deuteranopia (green-blind)
#63739B
Tritanopia (blue-blind)
#B74969
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af419e;
/* rgb */ color: rgb(175, 65, 158);
/* oklch */ color: oklch(55.9% 0.179 334.3);
Tailwind
colors: {
  custom: {
    50: '#ca7dbb',
    500: '#af419e',
    950: '#000000',
  },
}
SCSS
$custom: #af419e;
$custom-light: #ca7dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af419e",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 158
  },
  "hsl": {
    "h": 309.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55893,
    "c": 0.17907,
    "h": 334.3
  },
  "luminance": 0.15363
}

Semantic roles & 50–950 ramp

primary
#AF419E
secondary
#89C292
accent
#D56752
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF419E

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

Preview Lab → · Contrast checker → · Palette generator →

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