#AF3E8B#AF3E8B

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

Color values

HEX#AF3E8B
RGBrgb(175, 62, 139)
HSLhsl(319, 48%, 46%)
HSVhsv(319, 65%, 69%)
CMYKcmyk(0%, 64.6%, 20.6%, 31.4%)
CIE-LABlab(44.84, 54.08, -19.09)
CIE-LCHlch(44.84, 57.35, 340.56°)
OKLaboklab(54.68% 0.1618 -0.0511)
OKLCHoklch(54.68% 0.17 342.5)
XYZxyz(24.0627, 14.4255, 25.9382)
Luminance0.1442 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3E8B #3EAF62
analogous
#9B3EAF #AF3E8B #AF3E53
triadic
#AF3E8B #8BAF3E #3E8BAF
tetradic
#AF3E8B #AF9B3E #3EAF62 #3E53AF
square
#AF3E8B #AF9B3E #3EAF62 #3E53AF
split-complementary
#AF3E8B #53AF3E #3EAF9B
monochromatic
#551E43 #822E67 #AF3E8B #C863A7 #D890C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF3E8B#FFFFFF#000000##FFFFFF
##AF3E8B1.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)
#475E8D
Deuteranopia (green-blind)
#697188
Tritanopia (blue-blind)
#BA3F5F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3e8b;
/* rgb */ color: rgb(175, 62, 139);
/* oklch */ color: oklch(54.7% 0.170 342.5);
Tailwind
colors: {
  custom: {
    50: '#ca7bad',
    500: '#af3e8b',
    950: '#000000',
  },
}
SCSS
$custom: #af3e8b;
$custom-light: #ca7bad;
$custom-dark: #000000;
JSON
{
  "hex": "#af3e8b",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 319.115,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.16965,
    "h": 342.5
  },
  "luminance": 0.14423
}

Semantic roles & 50–950 ramp

primary
#AF3E8B
secondary
#86C399
accent
#D77B51
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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