#AF338B#AF338B

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

Color values

HEX#AF338B
RGBrgb(175, 51, 139)
HSLhsl(317, 55%, 44%)
HSVhsv(317, 71%, 69%)
CMYKcmyk(0%, 70.9%, 20.6%, 31.4%)
CIE-LABlab(43.28, 58.40, -21.48)
CIE-LCHlch(43.28, 62.22, 339.80°)
OKLaboklab(53.54% 0.1749 -0.0577)
OKLCHoklch(53.54% 0.184 341.7)
XYZxyz(23.5239, 13.3480, 25.7586)
Luminance0.1335 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338B #33AF57
analogous
#9533AF #AF338B #AF334D
triadic
#AF338B #8BAF33 #338BAF
tetradic
#AF338B #AF9533 #33AF57 #334DAF
square
#AF338B #AF9533 #33AF57 #334DAF
split-complementary
#AF338B #4DAF33 #33AF95
monochromatic
#501740 #802565 #AF338B #CD52A9 #DB82C1

Accessibility & contrast

On white

5.72
#AF338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF338B
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338B#FFFFFF#000000##FFFFFF
##AF338B1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D598D
Deuteranopia (green-blind)
#646E88
Tritanopia (blue-blind)
#BA355A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af338b;
/* rgb */ color: rgb(175, 51, 139);
/* oklch */ color: oklch(53.5% 0.184 341.7);
Tailwind
colors: {
  custom: {
    50: '#cb75ad',
    500: '#af338b',
    950: '#000000',
  },
}
SCSS
$custom: #af338b;
$custom-light: #cb75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af338b",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 317.419,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53539,
    "c": 0.18418,
    "h": 341.7
  },
  "luminance": 0.13346
}

Semantic roles & 50–950 ramp

primary
#AF338B
secondary
#7AC48F
accent
#DE754A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338B

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

Preview Lab → · Contrast checker → · Palette generator →

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