#AF98BF#AF98BF

#AF98BF is a light, moderate violet. Relative luminance 0.353; OKLCH L 71.3% C 0.061 H 311.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AF98BF
RGBrgb(175, 152, 191)
HSLhsl(275, 23%, 67%)
HSVhsv(275, 20%, 75%)
CMYKcmyk(8.4%, 20.4%, 0%, 25.1%)
CIE-LABlab(66.01, 15.86, -17.00)
CIE-LCHlch(66.01, 23.25, 313.02°)
OKLaboklab(71.3% 0.0404 -0.046)
OKLCHoklch(71.3% 0.061 311.3)
XYZxyz(38.3098, 35.3323, 54.0817)
Luminance0.3533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98BF #A8BF98
analogous
#9C98BF #AF98BF #BF98BB
triadic
#AF98BF #BFAF98 #98BFAF
tetradic
#AF98BF #BF9C98 #A8BF98 #98BBBF
square
#AF98BF #BF9C98 #A8BF98 #98BBBF
split-complementary
#AF98BF #BBBF98 #98BF9C
monochromatic
#735588 #9272A8 #AF98BF #CCBED6 #EAE3EE

Accessibility & contrast

On white

2.60
#AF98BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AF98BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98BF
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98BF#FFFFFF#000000##000000
##AF98BF1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#929FC1
Deuteranopia (green-blind)
#97A1BE
Tritanopia (blue-blind)
#AE9DA5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af98bf;
/* rgb */ color: rgb(175, 152, 191);
/* oklch */ color: oklch(71.3% 0.061 311.3);
Tailwind
colors: {
  custom: {
    50: '#c7b6d2',
    500: '#af98bf',
    950: '#000000',
  },
}
SCSS
$custom: #af98bf;
$custom-light: #c7b6d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af98bf",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 191
  },
  "hsl": {
    "h": 275.385,
    "s": 23.353,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71305,
    "c": 0.06126,
    "h": 311.3
  },
  "luminance": 0.35332
}

Semantic roles & 50–950 ramp

primary
#AF98BF
secondary
#D8E0D3
accent
#A2446A
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #AF98BF

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

Preview Lab → · Contrast checker → · Palette generator →

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