#AF399B#AF399B

#AF399B is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.9% C 0.188 H 335.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF399B
RGBrgb(175, 57, 155)
HSLhsl(310, 51%, 45%)
HSVhsv(310, 67%, 69%)
CMYKcmyk(0%, 67.4%, 11.4%, 31.4%)
CIE-LABlab(44.81, 58.48, -28.76)
CIE-LCHlch(44.81, 65.17, 333.81°)
OKLaboklab(54.89% 0.1705 -0.0784)
OKLCHoklch(54.89% 0.188 335.3)
XYZxyz(25.0590, 14.4089, 32.4654)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF399B #39AF4D
analogous
#8839AF #AF399B #AF3960
triadic
#AF399B #9BAF39 #399BAF
tetradic
#AF399B #AF8839 #39AF4D #3960AF
square
#AF399B #AF8839 #39AF4D #3960AF
split-complementary
#AF399B #60AF39 #39AF88
monochromatic
#531B49 #812A72 #AF399B #CA5BB7 #D98ACB

Accessibility & contrast

On white

5.41
#AF399B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF399B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF399B
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF399B#FFFFFF#000000##FFFFFF
##AF399B1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395F9E
Deuteranopia (green-blind)
#607098
Tritanopia (blue-blind)
#B84165
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af399b;
/* rgb */ color: rgb(175, 57, 155);
/* oklch */ color: oklch(54.9% 0.188 335.3);
Tailwind
colors: {
  custom: {
    50: '#ca79b9',
    500: '#af399b',
    950: '#000000',
  },
}
SCSS
$custom: #af399b;
$custom-light: #ca79b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af399b",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 310.169,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54888,
    "c": 0.18768,
    "h": 335.3
  },
  "luminance": 0.14407
}

Semantic roles & 50–950 ramp

primary
#AF399B
secondary
#81C38C
accent
#DA654D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF399B

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

Preview Lab → · Contrast checker → · Palette generator →

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