#AF335E#AF335E

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

Color values

HEX#AF335E
RGBrgb(175, 51, 94)
HSLhsl(339, 55%, 44%)
HSVhsv(339, 71%, 69%)
CMYKcmyk(0%, 70.9%, 46.3%, 31.4%)
CIE-LABlab(41.68, 53.11, 3.93)
CIE-LCHlch(41.68, 53.25, 4.23°)
OKLaboklab(51.84% 0.1624 0.0107)
OKLCHoklch(51.84% 0.163 3.8)
XYZxyz(20.8850, 12.2925, 11.8604)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335E #33AF84
analogous
#AF339C #AF335E #AF4633
triadic
#AF335E #5EAF33 #335EAF
tetradic
#AF335E #9CAF33 #33AF84 #4633AF
square
#AF335E #9CAF33 #33AF84 #4633AF
split-complementary
#AF335E #33AF46 #339CAF
monochromatic
#50172B #802545 #AF335E #CD527D #DB82A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF335E#FFFFFF#000000##FFFFFF
##AF335E1.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)
#4F535F
Deuteranopia (green-blind)
#6F6B5B
Tritanopia (blue-blind)
#BE1F45
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335e;
/* rgb */ color: rgb(175, 51, 94);
/* oklch */ color: oklch(51.8% 0.163 3.8);
Tailwind
colors: {
  custom: {
    50: '#cc748b',
    500: '#af335e',
    950: '#000000',
  },
}
SCSS
$custom: #af335e;
$custom-light: #cc748b;
$custom-dark: #000000;
JSON
{
  "hex": "#af335e",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 339.194,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51835,
    "c": 0.16277,
    "h": 3.8
  },
  "luminance": 0.1229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF335E

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

Preview Lab → · Contrast checker → · Palette generator →

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