#AF7CB2#AF7CB2

#AF7CB2 is a light, moderate purple. Relative luminance 0.267; OKLCH L 65.6% C 0.097 H 324.7°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF7CB2
RGBrgb(175, 124, 178)
HSLhsl(297, 26%, 59%)
HSVhsv(297, 30%, 70%)
CMYKcmyk(1.7%, 30.3%, 0%, 30.2%)
CIE-LABlab(58.74, 29.00, -20.71)
CIE-LCHlch(58.74, 35.64, 324.47°)
OKLaboklab(65.58% 0.0794 -0.0562)
OKLCHoklch(65.58% 0.097 324.7)
XYZxyz(32.9219, 26.7447, 45.5389)
Luminance0.2674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CB2 #7FB27C
analogous
#947CB2 #AF7CB2 #B27C9A
triadic
#AF7CB2 #B2AF7C #7CB2AF
tetradic
#AF7CB2 #B2947C #7FB27C #7C9AB2
square
#AF7CB2 #B2947C #7FB27C #7C9AB2
split-complementary
#AF7CB2 #9AB27C #7CB294
monochromatic
#6F4271 #945998 #AF7CB2 #C7A3C9 #DEC9DF

Accessibility & contrast

On white

3.31
#AF7CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AF7CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7CB2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CB2#FFFFFF#000000##000000
##AF7CB21.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7889B4
Deuteranopia (green-blind)
#848FB0
Tritanopia (blue-blind)
#B2818F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af7cb2;
/* rgb */ color: rgb(175, 124, 178);
/* oklch */ color: oklch(65.6% 0.097 324.7);
Tailwind
colors: {
  custom: {
    50: '#c7a2c9',
    500: '#af7cb2',
    950: '#000000',
  },
}
SCSS
$custom: #af7cb2;
$custom-light: #c7a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cb2",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 178
  },
  "hsl": {
    "h": 296.667,
    "s": 25.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.65577,
    "c": 0.09728,
    "h": 324.7
  },
  "luminance": 0.26744
}

Semantic roles & 50–950 ramp

primary
#AF7CB2
secondary
#BCCFBA
accent
#C2656B
background
#FCFAFC
surface
#F8F3F8
border
#D1CDD1
text
#130F13
muted
#827F82

Preview Lab

Preview with #AF7CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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