#AF338C#AF338C

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

Color values

HEX#AF338C
RGBrgb(175, 51, 140)
HSLhsl(317, 55%, 44%)
HSVhsv(317, 71%, 69%)
CMYKcmyk(0%, 70.9%, 20%, 31.4%)
CIE-LABlab(43.33, 58.53, -22.02)
CIE-LCHlch(43.33, 62.54, 339.38°)
OKLaboklab(53.59% 0.1751 -0.0592)
OKLCHoklch(53.59% 0.185 341.3)
XYZxyz(23.5973, 13.3774, 26.1452)
Luminance0.1338 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338C #33AF56
analogous
#9433AF #AF338C #AF334E
triadic
#AF338C #8CAF33 #338CAF
tetradic
#AF338C #AF9433 #33AF56 #334EAF
square
#AF338C #AF9433 #33AF56 #334EAF
split-complementary
#AF338C #4EAF33 #33AF94
monochromatic
#501740 #802566 #AF338C #CD52AA #DB82C2

Accessibility & contrast

On white

5.71
#AF338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF338C
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338C#FFFFFF#000000##FFFFFF
##AF338C1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A8F
Deuteranopia (green-blind)
#646E89
Tritanopia (blue-blind)
#BA355B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af338c;
/* rgb */ color: rgb(175, 51, 140);
/* oklch */ color: oklch(53.6% 0.185 341.3);
Tailwind
colors: {
  custom: {
    50: '#cb75ad',
    500: '#af338c',
    950: '#000000',
  },
}
SCSS
$custom: #af338c;
$custom-light: #cb75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af338c",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 316.935,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53585,
    "c": 0.18482,
    "h": 341.3
  },
  "luminance": 0.13375
}

Semantic roles & 50–950 ramp

primary
#AF338C
secondary
#7AC48F
accent
#DE744A
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338C

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

Preview Lab → · Contrast checker → · Palette generator →

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