#AF335F#AF335F

#AF335F is a mid, vivid pink. Relative luminance 0.123; OKLCH L 51.9% C 0.163 H 3.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AF335F
RGBrgb(175, 51, 95)
HSLhsl(339, 55%, 44%)
HSVhsv(339, 71%, 69%)
CMYKcmyk(0%, 70.9%, 45.7%, 31.4%)
CIE-LABlab(41.71, 53.21, 3.34)
CIE-LCHlch(41.71, 53.31, 3.59°)
OKLaboklab(51.87% 0.1628 0.0092)
OKLCHoklch(51.87% 0.163 3.2)
XYZxyz(20.9302, 12.3105, 12.0982)
Luminance0.1231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335F #33AF83
analogous
#AF339D #AF335F #AF4533
triadic
#AF335F #5FAF33 #335FAF
tetradic
#AF335F #9DAF33 #33AF83 #4533AF
square
#AF335F #9DAF33 #33AF83 #4533AF
split-complementary
#AF335F #33AF45 #339DAF
monochromatic
#50172C #802545 #AF335F #CD527E #DB82A1

Accessibility & contrast

On white

6.07
#AF335F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AF335F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF335F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF335F#FFFFFF#000000##FFFFFF
##AF335F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5360
Deuteranopia (green-blind)
#6F6B5C
Tritanopia (blue-blind)
#BE2045
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335f;
/* rgb */ color: rgb(175, 51, 95);
/* oklch */ color: oklch(51.9% 0.163 3.2);
Tailwind
colors: {
  custom: {
    50: '#cc748c',
    500: '#af335f',
    950: '#000000',
  },
}
SCSS
$custom: #af335f;
$custom-light: #cc748c;
$custom-dark: #000000;
JSON
{
  "hex": "#af335f",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 338.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.16304,
    "h": 3.2
  },
  "luminance": 0.12308
}

Semantic roles & 50–950 ramp

primary
#AF335F
secondary
#7AC4AA
accent
#DEA94A
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF335F

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

Preview Lab → · Contrast checker → · Palette generator →

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