#AF418E#AF418E

#AF418E is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.1% C 0.167 H 341.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF418E
RGBrgb(175, 65, 142)
HSLhsl(318, 46%, 47%)
HSVhsv(318, 63%, 69%)
CMYKcmyk(0%, 62.9%, 18.9%, 31.4%)
CIE-LABlab(45.43, 53.23, -20.00)
CIE-LCHlch(45.43, 56.86, 339.41°)
OKLaboklab(55.15% 0.1585 -0.0536)
OKLCHoklch(55.15% 0.167 341.3)
XYZxyz(24.4526, 14.8497, 27.1644)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF418E #41AF62
analogous
#9941AF #AF418E #AF4157
triadic
#AF418E #8EAF41 #418EAF
tetradic
#AF418E #AF9941 #41AF62 #4157AF
square
#AF418E #AF9941 #41AF62 #4157AF
split-complementary
#AF418E #57AF41 #41AF99
monochromatic
#562046 #82306A #AF418E #C667AA #D793C3

Accessibility & contrast

On white

5.29
#AF418E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF418E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF418E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF418E#FFFFFF#000000##FFFFFF
##AF418E1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486090
Deuteranopia (green-blind)
#69728B
Tritanopia (blue-blind)
#B94361
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af418e;
/* rgb */ color: rgb(175, 65, 142);
/* oklch */ color: oklch(55.1% 0.167 341.3);
Tailwind
colors: {
  custom: {
    50: '#ca7caf',
    500: '#af418e',
    950: '#000000',
  },
}
SCSS
$custom: #af418e;
$custom-light: #ca7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#af418e",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 318,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55149,
    "c": 0.16735,
    "h": 341.3
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#AF418E
secondary
#89C29A
accent
#D57A52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF418E

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

Preview Lab → · Contrast checker → · Palette generator →

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