#AF418C#AF418C

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

Color values

HEX#AF418C
RGBrgb(175, 65, 140)
HSLhsl(319, 46%, 47%)
HSVhsv(319, 63%, 69%)
CMYKcmyk(0%, 62.9%, 20%, 31.4%)
CIE-LABlab(45.35, 52.94, -18.91)
CIE-LCHlch(45.35, 56.21, 340.34°)
OKLaboklab(55.06% 0.1581 -0.0506)
OKLCHoklch(55.06% 0.166 342.3)
XYZxyz(24.3038, 14.7902, 26.3807)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF418C #41AF64
analogous
#9B41AF #AF418C #AF4155
triadic
#AF418C #8CAF41 #418CAF
tetradic
#AF418C #AF9B41 #41AF64 #4155AF
square
#AF418C #AF9B41 #41AF64 #4155AF
split-complementary
#AF418C #55AF41 #41AF9B
monochromatic
#562045 #823068 #AF418C #C667A8 #D793C2

Accessibility & contrast

On white

5.31
#AF418C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF418C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF418C
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF418C#FFFFFF#000000##FFFFFF
##AF418C1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608E
Deuteranopia (green-blind)
#6A7289
Tritanopia (blue-blind)
#B94261
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af418c;
/* rgb */ color: rgb(175, 65, 140);
/* oklch */ color: oklch(55.1% 0.166 342.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cad',
    500: '#af418c',
    950: '#000000',
  },
}
SCSS
$custom: #af418c;
$custom-light: #ca7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#af418c",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 319.091,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55061,
    "c": 0.16601,
    "h": 342.3
  },
  "luminance": 0.14788
}

Semantic roles & 50–950 ramp

primary
#AF418C
secondary
#89C29C
accent
#D57C52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF418C

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

Preview Lab → · Contrast checker → · Palette generator →

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