#AF798E#AF798E

#AF798E is a light, moderate pink. Relative luminance 0.247; OKLCH L 63.7% C 0.073 H 354.3°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF798E
RGBrgb(175, 121, 142)
HSLhsl(337, 25%, 58%)
HSVhsv(337, 31%, 69%)
CMYKcmyk(0%, 30.9%, 18.9%, 31.4%)
CIE-LABlab(56.82, 24.25, -2.84)
CIE-LCHlch(56.82, 24.41, 353.31°)
OKLaboklab(63.72% 0.0724 -0.0072)
OKLCHoklch(63.72% 0.073 354.3)
XYZxyz(29.3993, 24.7432, 28.8133)
Luminance0.2474 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF798E #79AF9A
analogous
#AF79A9 #AF798E #AF7F79
triadic
#AF798E #8EAF79 #798EAF
tetradic
#AF798E #A9AF79 #79AF9A #7F79AF
square
#AF798E #A9AF79 #79AF9A #7F79AF
split-complementary
#AF798E #79AF7F #79A9AF
monochromatic
#6D4152 #93586F #AF798E #C69FAE #DDC6CF

Accessibility & contrast

On white

3.53
#AF798E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#AF798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF798E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF798E#FFFFFF#000000##000000
##AF798E1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F838F
Deuteranopia (green-blind)
#8C8C8D
Tritanopia (blue-blind)
#B77780
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af798e;
/* rgb */ color: rgb(175, 121, 142);
/* oklch */ color: oklch(63.7% 0.073 354.3);
Tailwind
colors: {
  custom: {
    50: '#c8a0af',
    500: '#af798e',
    950: '#000000',
  },
}
SCSS
$custom: #af798e;
$custom-light: #c8a0af;
$custom-dark: #000000;
JSON
{
  "hex": "#af798e",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 336.667,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.63718,
    "c": 0.07275,
    "h": 354.3
  },
  "luminance": 0.24742
}

Semantic roles & 50–950 ramp

primary
#AF798E
secondary
#B7CDC4
accent
#C29E66
background
#FCF9FA
surface
#F8F2F4
border
#D1CCCE
text
#130E10
muted
#827E7F

Preview Lab

Preview with #AF798E

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

Preview Lab → · Contrast checker → · Palette generator →

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