#AF98BC#AF98BC

#AF98BC is a light, muted violet. Relative luminance 0.352; OKLCH L 71.2% C 0.057 H 313.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AF98BC
RGBrgb(175, 152, 188)
HSLhsl(278, 21%, 67%)
HSVhsv(278, 19%, 74%)
CMYKcmyk(6.9%, 19.1%, 0%, 26.3%)
CIE-LABlab(65.91, 15.25, -15.48)
CIE-LCHlch(65.91, 21.73, 314.58°)
OKLaboklab(71.19% 0.0394 -0.0418)
OKLCHoklch(71.19% 0.057 313.3)
XYZxyz(37.9831, 35.2016, 52.3608)
Luminance0.3520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98BC #A5BC98
analogous
#9D98BC #AF98BC #BC98B7
triadic
#AF98BC #BCAF98 #98BCAF
tetradic
#AF98BC #BC9D98 #A5BC98 #98B7BC
square
#AF98BC #BC9D98 #A5BC98 #98B7BC
split-complementary
#AF98BC #B7BC98 #98BC9D
monochromatic
#735684 #9273A4 #AF98BC #CCBDD4 #E9E2EC

Accessibility & contrast

On white

2.61
#AF98BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AF98BC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98BC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98BC#FFFFFF#000000##000000
##AF98BC1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#939FBE
Deuteranopia (green-blind)
#98A1BB
Tritanopia (blue-blind)
#AE9CA4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af98bc;
/* rgb */ color: rgb(175, 152, 188);
/* oklch */ color: oklch(71.2% 0.057 313.3);
Tailwind
colors: {
  custom: {
    50: '#c7b6d0',
    500: '#af98bc',
    950: '#000000',
  },
}
SCSS
$custom: #af98bc;
$custom-light: #c7b6d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af98bc",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 188
  },
  "hsl": {
    "h": 278.333,
    "s": 21.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.71194,
    "c": 0.05746,
    "h": 313.3
  },
  "luminance": 0.35201
}

Semantic roles & 50–950 ramp

primary
#AF98BC
secondary
#D6DED2
accent
#A04666
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #AF98BC

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

Preview Lab → · Contrast checker → · Palette generator →

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