#AF7DB2#AF7DB2

#AF7DB2 is a light, moderate purple. Relative luminance 0.270; OKLCH L 65.8% C 0.095 H 324.7°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF7DB2
RGBrgb(175, 125, 178)
HSLhsl(297, 26%, 59%)
HSVhsv(297, 30%, 70%)
CMYKcmyk(1.7%, 29.8%, 0%, 30.2%)
CIE-LABlab(58.97, 28.44, -20.35)
CIE-LCHlch(58.97, 34.97, 324.41°)
OKLaboklab(65.76% 0.0779 -0.0552)
OKLCHoklch(65.76% 0.095 324.7)
XYZxyz(33.0478, 26.9966, 45.5809)
Luminance0.2700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DB2 #80B27D
analogous
#957DB2 #AF7DB2 #B27D9B
triadic
#AF7DB2 #B2AF7D #7DB2AF
tetradic
#AF7DB2 #B2957D #80B27D #7D9BB2
square
#AF7DB2 #B2957D #80B27D #7D9BB2
split-complementary
#AF7DB2 #9BB27D #7DB295
monochromatic
#6F4371 #945A98 #AF7DB2 #C7A3C9 #DECAE0

Accessibility & contrast

On white

3.28
#AF7DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#AF7DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DB2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DB2#FFFFFF#000000##000000
##AF7DB21.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#798AB4
Deuteranopia (green-blind)
#8490B0
Tritanopia (blue-blind)
#B28290
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af7db2;
/* rgb */ color: rgb(175, 125, 178);
/* oklch */ color: oklch(65.8% 0.095 324.7);
Tailwind
colors: {
  custom: {
    50: '#c7a3c9',
    500: '#af7db2',
    950: '#000000',
  },
}
SCSS
$custom: #af7db2;
$custom-light: #c7a3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af7db2",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 296.604,
    "s": 25.604,
    "l": 59.412
  },
  "oklch": {
    "l": 0.65755,
    "c": 0.09544,
    "h": 324.7
  },
  "luminance": 0.26996
}

Semantic roles & 50–950 ramp

primary
#AF7DB2
secondary
#BCD0BB
accent
#C2666B
background
#FCFAFC
surface
#F8F4F8
border
#D1CED1
text
#130F13
muted
#827F82

Preview Lab

Preview with #AF7DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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