#AF798B#AF798B

#AF798B is a light, moderate pink. Relative luminance 0.247; OKLCH L 63.6% C 0.071 H 357.7°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF798B
RGBrgb(175, 121, 139)
HSLhsl(340, 25%, 58%)
HSVhsv(340, 31%, 69%)
CMYKcmyk(0%, 30.9%, 20.6%, 31.4%)
CIE-LABlab(56.74, 23.77, -1.23)
CIE-LCHlch(56.74, 23.80, 357.03°)
OKLaboklab(63.62% 0.0713 -0.0029)
OKLCHoklch(63.62% 0.071 357.7)
XYZxyz(29.1771, 24.6544, 27.6430)
Luminance0.2465 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF798B #79AF9D
analogous
#AF79A6 #AF798B #AF8279
triadic
#AF798B #8BAF79 #798BAF
tetradic
#AF798B #A6AF79 #79AF9D #8279AF
square
#AF798B #A6AF79 #79AF9D #8279AF
split-complementary
#AF798B #79AF82 #79A6AF
monochromatic
#6D414F #93586C #AF798B #C69FAC #DDC6CD

Accessibility & contrast

On white

3.54
#AF798B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#AF798B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF798B
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF798B#FFFFFF#000000##000000
##AF798B1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F828C
Deuteranopia (green-blind)
#8C8C8A
Tritanopia (blue-blind)
#B8767F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af798b;
/* rgb */ color: rgb(175, 121, 139);
/* oklch */ color: oklch(63.6% 0.071 357.7);
Tailwind
colors: {
  custom: {
    50: '#c8a0ac',
    500: '#af798b',
    950: '#000000',
  },
}
SCSS
$custom: #af798b;
$custom-light: #c8a0ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af798b",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 139
  },
  "hsl": {
    "h": 340,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.63622,
    "c": 0.07134,
    "h": 357.7
  },
  "luminance": 0.24653
}

Semantic roles & 50–950 ramp

primary
#AF798B
secondary
#B7CDC5
accent
#C2A366
background
#FCF9FA
surface
#F8F2F4
border
#D1CCCE
text
#130E10
muted
#827E7F

Preview Lab

Preview with #AF798B

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

Preview Lab → · Contrast checker → · Palette generator →

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