#AF3F8A#AF3F8A

#AF3F8A is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.7% C 0.168 H 343.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF3F8A
RGBrgb(175, 63, 138)
HSLhsl(320, 47%, 47%)
HSVhsv(320, 64%, 69%)
CMYKcmyk(0%, 64%, 21.1%, 31.4%)
CIE-LABlab(44.95, 53.51, -18.31)
CIE-LCHlch(44.95, 56.56, 341.11°)
OKLaboklab(54.74% 0.1603 -0.0489)
OKLCHoklch(54.74% 0.168 343)
XYZxyz(24.0449, 14.5062, 25.5735)
Luminance0.1450 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F8A #3FAF64
analogous
#9C3FAF #AF3F8A #AF3F52
triadic
#AF3F8A #8AAF3F #3F8AAF
tetradic
#AF3F8A #AF9C3F #3FAF64 #3F52AF
square
#AF3F8A #AF9C3F #3FAF64 #3F52AF
split-complementary
#AF3F8A #52AF3F #3FAF9C
monochromatic
#551F43 #822F67 #AF3F8A #C764A6 #D791C0

Accessibility & contrast

On white

5.38
#AF3F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF3F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F8A
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F8A#FFFFFF#000000##FFFFFF
##AF3F8A1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8C
Deuteranopia (green-blind)
#697187
Tritanopia (blue-blind)
#BA3F5F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3f8a;
/* rgb */ color: rgb(175, 63, 138);
/* oklch */ color: oklch(54.7% 0.168 343.0);
Tailwind
colors: {
  custom: {
    50: '#ca7bac',
    500: '#af3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #af3f8a;
$custom-light: #ca7bac;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f8a",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 319.821,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54744,
    "c": 0.16757,
    "h": 343
  },
  "luminance": 0.14504
}

Semantic roles & 50–950 ramp

primary
#AF3F8A
secondary
#87C39B
accent
#D77D51
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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