#AF338D#AF338D

#AF338D is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.6% C 0.185 H 340.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF338D
RGBrgb(175, 51, 141)
HSLhsl(316, 55%, 44%)
HSVhsv(316, 71%, 69%)
CMYKcmyk(0%, 70.9%, 19.4%, 31.4%)
CIE-LABlab(43.37, 58.67, -22.56)
CIE-LCHlch(43.37, 62.86, 338.97°)
OKLaboklab(53.63% 0.1753 -0.0607)
OKLCHoklch(53.63% 0.185 340.9)
XYZxyz(23.6714, 13.4070, 26.5353)
Luminance0.1341 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338D #33AF55
analogous
#9333AF #AF338D #AF334F
triadic
#AF338D #8DAF33 #338DAF
tetradic
#AF338D #AF9333 #33AF55 #334FAF
square
#AF338D #AF9333 #33AF55 #334FAF
split-complementary
#AF338D #4FAF33 #33AF93
monochromatic
#501741 #802567 #AF338D #CD52AB #DB82C2

Accessibility & contrast

On white

5.70
#AF338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF338D
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338D#FFFFFF#000000##FFFFFF
##AF338D1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A90
Deuteranopia (green-blind)
#636E8A
Tritanopia (blue-blind)
#B9365C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af338d;
/* rgb */ color: rgb(175, 51, 141);
/* oklch */ color: oklch(53.6% 0.185 340.9);
Tailwind
colors: {
  custom: {
    50: '#cb75ae',
    500: '#af338d',
    950: '#000000',
  },
}
SCSS
$custom: #af338d;
$custom-light: #cb75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af338d",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 316.452,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53631,
    "c": 0.18547,
    "h": 340.9
  },
  "luminance": 0.13405
}

Semantic roles & 50–950 ramp

primary
#AF338D
secondary
#7AC48E
accent
#DE724A
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338D

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

Preview Lab → · Contrast checker → · Palette generator →

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