#AF3F8B#AF3F8B

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

Color values

HEX#AF3F8B
RGBrgb(175, 63, 139)
HSLhsl(319, 47%, 47%)
HSVhsv(319, 64%, 69%)
CMYKcmyk(0%, 64%, 20.6%, 31.4%)
CIE-LABlab(44.99, 53.65, -18.85)
CIE-LCHlch(44.99, 56.87, 340.64°)
OKLaboklab(54.79% 0.1605 -0.0504)
OKLCHoklch(54.79% 0.168 342.6)
XYZxyz(24.1176, 14.5353, 25.9565)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F8B #3FAF63
analogous
#9B3FAF #AF3F8B #AF3F53
triadic
#AF3F8B #8BAF3F #3F8BAF
tetradic
#AF3F8B #AF9B3F #3FAF63 #3F53AF
square
#AF3F8B #AF9B3F #3FAF63 #3F53AF
split-complementary
#AF3F8B #53AF3F #3FAF9B
monochromatic
#551F44 #822F67 #AF3F8B #C764A7 #D791C1

Accessibility & contrast

On white

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

On black

3.91
#AF3F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF3F8B#FFFFFF#000000##FFFFFF
##AF3F8B1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8D
Deuteranopia (green-blind)
#697188
Tritanopia (blue-blind)
#BA405F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3f8b;
/* rgb */ color: rgb(175, 63, 139);
/* oklch */ color: oklch(54.8% 0.168 342.6);
Tailwind
colors: {
  custom: {
    50: '#ca7bad',
    500: '#af3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #af3f8b;
$custom-light: #ca7bad;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f8b",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 319.286,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54788,
    "c": 0.16822,
    "h": 342.6
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#AF3F8B
secondary
#87C39A
accent
#D77C51
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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