#AF7FA2#AF7FA2

#AF7FA2 is a light, moderate pink. Relative luminance 0.269; OKLCH L 65.5% C 0.076 H 336.6°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF7FA2
RGBrgb(175, 127, 162)
HSLhsl(316, 23%, 59%)
HSVhsv(316, 27%, 69%)
CMYKcmyk(0%, 27.4%, 7.4%, 31.4%)
CIE-LABlab(58.88, 24.30, -11.32)
CIE-LCHlch(58.88, 26.80, 335.02°)
OKLaboklab(65.5% 0.0697 -0.0301)
OKLCHoklch(65.5% 0.076 336.6)
XYZxyz(31.7898, 26.9025, 37.6936)
Luminance0.2690 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FA2 #7FAF8C
analogous
#A47FAF #AF7FA2 #AF7F8A
triadic
#AF7FA2 #A2AF7F #7FA2AF
tetradic
#AF7FA2 #AFA47F #7FAF8C #7F8AAF
square
#AF7FA2 #AFA47F #7FAF8C #7F8AAF
split-complementary
#AF7FA2 #8AAF7F #7FAFA4
monochromatic
#6F4563 #945D85 #AF7FA2 #C7A5BD #DECAD9

Accessibility & contrast

On white

3.29
#AF7FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#AF7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7FA2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FA2#FFFFFF#000000##000000
##AF7FA21.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8089A3
Deuteranopia (green-blind)
#8B90A1
Tritanopia (blue-blind)
#B4808B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af7fa2;
/* rgb */ color: rgb(175, 127, 162);
/* oklch */ color: oklch(65.5% 0.076 336.6);
Tailwind
colors: {
  custom: {
    50: '#c7a4bd',
    500: '#af7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #af7fa2;
$custom-light: #c7a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fa2",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 316.25,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.65503,
    "c": 0.07596,
    "h": 336.6
  },
  "luminance": 0.26901
}

Semantic roles & 50–950 ramp

primary
#AF7FA2
secondary
#BCCEC1
accent
#C08068
background
#FCFAFB
surface
#F8F4F6
border
#D1CED0
text
#130F12
muted
#827F81

Preview Lab

Preview with #AF7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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