#AF398B#AF398B

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

Color values

HEX#AF398B
RGBrgb(175, 57, 139)
HSLhsl(318, 51%, 45%)
HSVhsv(318, 67%, 69%)
CMYKcmyk(0%, 67.4%, 20.6%, 31.4%)
CIE-LABlab(44.10, 56.12, -20.23)
CIE-LCHlch(44.10, 59.65, 340.18°)
OKLaboklab(54.13% 0.168 -0.0542)
OKLCHoklch(54.13% 0.177 342.1)
XYZxyz(23.8032, 13.9066, 25.8517)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398B #39AF5D
analogous
#9839AF #AF398B #AF3950
triadic
#AF398B #8BAF39 #398BAF
tetradic
#AF398B #AF9839 #39AF5D #3950AF
square
#AF398B #AF9839 #39AF5D #3950AF
split-complementary
#AF398B #50AF39 #39AF98
monochromatic
#531B42 #812A66 #AF398B #CA5BA8 #D98AC1

Accessibility & contrast

On white

5.55
#AF398B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF398B
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398B#FFFFFF#000000##FFFFFF
##AF398B1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8D
Deuteranopia (green-blind)
#666F88
Tritanopia (blue-blind)
#BA3A5D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af398b;
/* rgb */ color: rgb(175, 57, 139);
/* oklch */ color: oklch(54.1% 0.177 342.1);
Tailwind
colors: {
  custom: {
    50: '#ca78ad',
    500: '#af398b',
    950: '#000000',
  },
}
SCSS
$custom: #af398b;
$custom-light: #ca78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af398b",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 318.305,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54134,
    "c": 0.17651,
    "h": 342.1
  },
  "luminance": 0.13904
}

Semantic roles & 50–950 ramp

primary
#AF398B
secondary
#81C395
accent
#DA784D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF398B

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

Preview Lab → · Contrast checker → · Palette generator →

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