#AF339A#AF339A

#AF339A is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.3% C 0.194 H 335.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF339A
RGBrgb(175, 51, 154)
HSLhsl(310, 55%, 44%)
HSVhsv(310, 71%, 69%)
CMYKcmyk(0%, 70.9%, 12%, 31.4%)
CIE-LABlab(43.97, 60.57, -29.48)
CIE-LCHlch(43.97, 67.36, 334.04°)
OKLaboklab(54.26% 0.177 -0.0804)
OKLCHoklch(54.26% 0.194 335.6)
XYZxyz(24.6961, 13.8169, 31.9318)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339A #33AF48
analogous
#8633AF #AF339A #AF335C
triadic
#AF339A #9AAF33 #339AAF
tetradic
#AF339A #AF8633 #33AF48 #335CAF
square
#AF339A #AF8633 #33AF48 #335CAF
split-complementary
#AF339A #5CAF33 #33AF86
monochromatic
#501747 #802570 #AF339A #CD52B8 #DB82CC

Accessibility & contrast

On white

5.58
#AF339A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF339A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF339A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339A#FFFFFF#000000##FFFFFF
##AF339A1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345C9D
Deuteranopia (green-blind)
#5E6F97
Tritanopia (blue-blind)
#B83C62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af339a;
/* rgb */ color: rgb(175, 51, 154);
/* oklch */ color: oklch(54.3% 0.194 335.6);
Tailwind
colors: {
  custom: {
    50: '#ca76b8',
    500: '#af339a',
    950: '#000000',
  },
}
SCSS
$custom: #af339a;
$custom-light: #ca76b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af339a",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 310.161,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.19444,
    "h": 335.6
  },
  "luminance": 0.13815
}

Semantic roles & 50–950 ramp

primary
#AF339A
secondary
#7AC486
accent
#DE634A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF339A

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

Preview Lab → · Contrast checker → · Palette generator →

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