#AF398F#AF398F

#AF398F is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.3% C 0.179 H 340.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF398F
RGBrgb(175, 57, 143)
HSLhsl(316, 51%, 45%)
HSVhsv(316, 67%, 69%)
CMYKcmyk(0%, 67.4%, 18.3%, 31.4%)
CIE-LABlab(44.27, 56.69, -22.38)
CIE-LCHlch(44.27, 60.95, 338.45°)
OKLaboklab(54.32% 0.1687 -0.0603)
OKLCHoklch(54.32% 0.179 340.3)
XYZxyz(24.1009, 14.0256, 27.4192)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398F #39AF59
analogous
#9439AF #AF398F #AF3954
triadic
#AF398F #8FAF39 #398FAF
tetradic
#AF398F #AF9439 #39AF59 #3954AF
square
#AF398F #AF9439 #39AF59 #3954AF
split-complementary
#AF398F #54AF39 #39AF94
monochromatic
#531B44 #812A69 #AF398F #CA5BAC #D98AC3

Accessibility & contrast

On white

5.52
#AF398F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF398F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF398F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398F#FFFFFF#000000##FFFFFF
##AF398F1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415D92
Deuteranopia (green-blind)
#65708C
Tritanopia (blue-blind)
#B93C5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af398f;
/* rgb */ color: rgb(175, 57, 143);
/* oklch */ color: oklch(54.3% 0.179 340.3);
Tailwind
colors: {
  custom: {
    50: '#ca78b0',
    500: '#af398f',
    950: '#000000',
  },
}
SCSS
$custom: #af398f;
$custom-light: #ca78b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af398f",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 316.271,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54315,
    "c": 0.17917,
    "h": 340.3
  },
  "luminance": 0.14023
}

Semantic roles & 50–950 ramp

primary
#AF398F
secondary
#81C393
accent
#DA744D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF398F

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

Preview Lab → · Contrast checker → · Palette generator →

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