#AF338A#AF338A

#AF338A is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.5% C 0.184 H 342.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF338A
RGBrgb(175, 51, 138)
HSLhsl(318, 55%, 44%)
HSVhsv(318, 71%, 69%)
CMYKcmyk(0%, 70.9%, 21.1%, 31.4%)
CIE-LABlab(43.24, 58.26, -20.94)
CIE-LCHlch(43.24, 61.91, 340.23°)
OKLaboklab(53.49% 0.1747 -0.0562)
OKLCHoklch(53.49% 0.184 342.2)
XYZxyz(23.4512, 13.3189, 25.3756)
Luminance0.1332 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338A #33AF58
analogous
#9633AF #AF338A #AF334C
triadic
#AF338A #8AAF33 #338AAF
tetradic
#AF338A #AF9633 #33AF58 #334CAF
square
#AF338A #AF9633 #33AF58 #334CAF
split-complementary
#AF338A #4CAF33 #33AF96
monochromatic
#50173F #802565 #AF338A #CD52A8 #DB82C0

Accessibility & contrast

On white

5.73
#AF338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF338A
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338A#FFFFFF#000000##FFFFFF
##AF338A1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E598C
Deuteranopia (green-blind)
#646D87
Tritanopia (blue-blind)
#BA345A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af338a;
/* rgb */ color: rgb(175, 51, 138);
/* oklch */ color: oklch(53.5% 0.184 342.2);
Tailwind
colors: {
  custom: {
    50: '#cb75ac',
    500: '#af338a',
    950: '#000000',
  },
}
SCSS
$custom: #af338a;
$custom-light: #cb75ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af338a",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 317.903,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.18353,
    "h": 342.2
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#AF338A
secondary
#7AC490
accent
#DE764A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338A

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

Preview Lab → · Contrast checker → · Palette generator →

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