#AF338F#AF338F

#AF338F is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.7% C 0.187 H 340.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF338F
RGBrgb(175, 51, 143)
HSLhsl(315, 55%, 44%)
HSVhsv(315, 71%, 69%)
CMYKcmyk(0%, 70.9%, 18.3%, 31.4%)
CIE-LABlab(43.46, 58.96, -23.64)
CIE-LCHlch(43.46, 63.52, 338.15°)
OKLaboklab(53.72% 0.1756 -0.0638)
OKLCHoklch(53.72% 0.187 340)
XYZxyz(23.8216, 13.4671, 27.3261)
Luminance0.1346 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338F #33AF53
analogous
#9133AF #AF338F #AF3351
triadic
#AF338F #8FAF33 #338FAF
tetradic
#AF338F #AF9133 #33AF53 #3351AF
square
#AF338F #AF9133 #33AF53 #3351AF
split-complementary
#AF338F #51AF33 #33AF91
monochromatic
#501742 #802568 #AF338F #CD52AD #DB82C4

Accessibility & contrast

On white

5.69
#AF338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF338F
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338F#FFFFFF#000000##FFFFFF
##AF338F1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5A92
Deuteranopia (green-blind)
#626E8C
Tritanopia (blue-blind)
#B9375D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af338f;
/* rgb */ color: rgb(175, 51, 143);
/* oklch */ color: oklch(53.7% 0.187 340.0);
Tailwind
colors: {
  custom: {
    50: '#cb75b0',
    500: '#af338f',
    950: '#000000',
  },
}
SCSS
$custom: #af338f;
$custom-light: #cb75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af338f",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 315.484,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53724,
    "c": 0.1868,
    "h": 340
  },
  "luminance": 0.13465
}

Semantic roles & 50–950 ramp

primary
#AF338F
secondary
#7AC48D
accent
#DE704A
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338F

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

Preview Lab → · Contrast checker → · Palette generator →

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