#AF7ABC#AF7ABC

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

Color values

HEX#AF7ABC
RGBrgb(175, 122, 188)
HSLhsl(288, 33%, 61%)
HSVhsv(288, 35%, 74%)
CMYKcmyk(6.9%, 35.1%, 0%, 26.3%)
CIE-LABlab(58.66, 32.12, -26.53)
CIE-LCHlch(58.66, 41.66, 320.44°)
OKLaboklab(65.65% 0.0852 -0.0726)
OKLCHoklch(65.65% 0.112 319.6)
XYZxyz(33.7146, 26.6648, 50.9380)
Luminance0.2666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ABC #87BC7A
analogous
#8E7ABC #AF7ABC #BC7AA8
triadic
#AF7ABC #BCAF7A #7ABCAF
tetradic
#AF7ABC #BC8E7A #87BC7A #7AA8BC
square
#AF7ABC #BC8E7A #87BC7A #7AA8BC
split-complementary
#AF7ABC #A8BC7A #7ABC8E
monochromatic
#713F7D #9553A5 #AF7ABC #C7A3D1 #E0CBE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7ABC#FFFFFF#000000##000000
##AF7ABC1.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)
#7289BF
Deuteranopia (green-blind)
#7E8FBA
Tritanopia (blue-blind)
#B08292
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af7abc;
/* rgb */ color: rgb(175, 122, 188);
/* oklch */ color: oklch(65.6% 0.112 319.6);
Tailwind
colors: {
  custom: {
    50: '#c8a1d0',
    500: '#af7abc',
    950: '#000000',
  },
}
SCSS
$custom: #af7abc;
$custom-light: #c8a1d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af7abc",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 188
  },
  "hsl": {
    "h": 288.182,
    "s": 33,
    "l": 60.784
  },
  "oklch": {
    "l": 0.65648,
    "c": 0.11189,
    "h": 319.6
  },
  "luminance": 0.26664
}

Semantic roles & 50–950 ramp

primary
#AF7ABC
secondary
#C1D5BC
accent
#AC3A50
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130F14
muted
#827E82

Preview Lab

Preview with #AF7ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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