#AF398A#AF398A

#AF398A is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.1% C 0.176 H 342.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF398A
RGBrgb(175, 57, 138)
HSLhsl(319, 51%, 45%)
HSVhsv(319, 67%, 69%)
CMYKcmyk(0%, 67.4%, 21.1%, 31.4%)
CIE-LABlab(44.06, 55.98, -19.68)
CIE-LCHlch(44.06, 59.34, 340.63°)
OKLaboklab(54.09% 0.1678 -0.0527)
OKLCHoklch(54.09% 0.176 342.6)
XYZxyz(23.7305, 13.8775, 25.4687)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398A #39AF5E
analogous
#9939AF #AF398A #AF394F
triadic
#AF398A #8AAF39 #398AAF
tetradic
#AF398A #AF9939 #39AF5E #394FAF
square
#AF398A #AF9939 #39AF5E #394FAF
split-complementary
#AF398A #4FAF39 #39AF99
monochromatic
#531B41 #812A66 #AF398A #CA5BA7 #D98AC0

Accessibility & contrast

On white

5.56
#AF398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF398A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF398A
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398A#FFFFFF#000000##FFFFFF
##AF398A1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#676F87
Tritanopia (blue-blind)
#BA3A5C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af398a;
/* rgb */ color: rgb(175, 57, 138);
/* oklch */ color: oklch(54.1% 0.176 342.6);
Tailwind
colors: {
  custom: {
    50: '#ca78ac',
    500: '#af398a',
    950: '#000000',
  },
}
SCSS
$custom: #af398a;
$custom-light: #ca78ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af398a",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 318.814,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5409,
    "c": 0.17586,
    "h": 342.6
  },
  "luminance": 0.13875
}

Semantic roles & 50–950 ramp

primary
#AF398A
secondary
#81C396
accent
#DA7A4D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF398A

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

Preview Lab → · Contrast checker → · Palette generator →

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