#AF7EA2#AF7EA2

#AF7EA2 is a light, moderate pink. Relative luminance 0.266; OKLCH L 65.3% C 0.078 H 336.4°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF7EA2
RGBrgb(175, 126, 162)
HSLhsl(316, 23%, 59%)
HSVhsv(316, 28%, 69%)
CMYKcmyk(0%, 28%, 7.4%, 31.4%)
CIE-LABlab(58.64, 24.86, -11.68)
CIE-LCHlch(58.64, 27.47, 334.83°)
OKLaboklab(65.32% 0.0713 -0.0311)
OKLCHoklch(65.32% 0.078 336.4)
XYZxyz(31.6613, 26.6455, 37.6507)
Luminance0.2664 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EA2 #7EAF8B
analogous
#A47EAF #AF7EA2 #AF7E8A
triadic
#AF7EA2 #A2AF7E #7EA2AF
tetradic
#AF7EA2 #AFA47E #7EAF8B #7E8AAF
square
#AF7EA2 #AFA47E #7EAF8B #7E8AAF
split-complementary
#AF7EA2 #8AAF7E #7EAFA4
monochromatic
#6E4463 #945C85 #AF7EA2 #C6A4BD #DECAD8

Accessibility & contrast

On white

3.32
#AF7EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#AF7EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7EA2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EA2#FFFFFF#000000##000000
##AF7EA21.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F89A3
Deuteranopia (green-blind)
#8A90A0
Tritanopia (blue-blind)
#B47F8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af7ea2;
/* rgb */ color: rgb(175, 126, 162);
/* oklch */ color: oklch(65.3% 0.078 336.4);
Tailwind
colors: {
  custom: {
    50: '#c7a4bd',
    500: '#af7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #af7ea2;
$custom-light: #c7a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ea2",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 315.918,
    "s": 23.445,
    "l": 59.02
  },
  "oklch": {
    "l": 0.6532,
    "c": 0.07781,
    "h": 336.4
  },
  "luminance": 0.26644
}

Semantic roles & 50–950 ramp

primary
#AF7EA2
secondary
#BBCEC0
accent
#C07F68
background
#FCFAFB
surface
#F8F4F6
border
#D1CED0
text
#130F12
muted
#827F81

Preview Lab

Preview with #AF7EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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