#AF419D#AF419D

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

Color values

HEX#AF419D
RGBrgb(175, 65, 157)
HSLhsl(310, 46%, 47%)
HSVhsv(310, 63%, 69%)
CMYKcmyk(0%, 62.9%, 10.3%, 31.4%)
CIE-LABlab(46.08, 55.53, -27.98)
CIE-LCHlch(46.08, 62.18, 333.26°)
OKLaboklab(55.84% 0.1612 -0.0762)
OKLCHoklch(55.84% 0.178 334.7)
XYZxyz(25.6555, 15.3309, 33.4997)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF419D #41AF53
analogous
#8A41AF #AF419D #AF4166
triadic
#AF419D #9DAF41 #419DAF
tetradic
#AF419D #AF8A41 #41AF53 #4166AF
square
#AF419D #AF8A41 #41AF53 #4166AF
split-complementary
#AF419D #66AF41 #41AF8A
monochromatic
#56204D #823075 #AF419D #C667B7 #D793CC

Accessibility & contrast

On white

5.17
#AF419D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF419D
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF419D#FFFFFF#000000##FFFFFF
##AF419D1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4063A0
Deuteranopia (green-blind)
#63739A
Tritanopia (blue-blind)
#B74869
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af419d;
/* rgb */ color: rgb(175, 65, 157);
/* oklch */ color: oklch(55.8% 0.178 334.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dba',
    500: '#af419d',
    950: '#000000',
  },
}
SCSS
$custom: #af419d;
$custom-light: #ca7dba;
$custom-dark: #000000;
JSON
{
  "hex": "#af419d",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 309.818,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.17829,
    "h": 334.7
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#AF419D
secondary
#89C293
accent
#D56852
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF419D

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

Preview Lab → · Contrast checker → · Palette generator →

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