#AF97CF#AF97CF

#AF97CF is a light, moderate violet. Relative luminance 0.358; OKLCH L 71.7% C 0.084 H 304.0°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#AF97CF
RGBrgb(175, 151, 207)
HSLhsl(266, 37%, 70%)
HSVhsv(266, 27%, 81%)
CMYKcmyk(15.5%, 27.1%, 0%, 18.8%)
CIE-LABlab(66.33, 19.84, -25.42)
CIE-LCHlch(66.33, 32.25, 307.97°)
OKLaboklab(71.74% 0.0469 -0.0696)
OKLCHoklch(71.74% 0.084 304)
XYZxyz(40.0061, 35.7523, 63.8127)
Luminance0.3575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97CF #B7CF97
analogous
#979BCF #AF97CF #CB97CF
triadic
#AF97CF #CFAF97 #97CFAF
tetradic
#AF97CF #CF979B #B7CF97 #97CFCB
square
#AF97CF #CF979B #B7CF97 #97CFCB
split-complementary
#AF97CF #CFCB97 #9BCF97
monochromatic
#704AA1 #8F6DBC #AF97CF #CFC1E2 #EFEAF5

Accessibility & contrast

On white

2.58
#AF97CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#AF97CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97CF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97CF#FFFFFF#000000##000000
##AF97CF1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA1D1
Deuteranopia (green-blind)
#91A1CD
Tritanopia (blue-blind)
#AA9FAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af97cf;
/* rgb */ color: rgb(175, 151, 207);
/* oklch */ color: oklch(71.7% 0.084 304.0);
Tailwind
colors: {
  custom: {
    50: '#c7b5dd',
    500: '#af97cf',
    950: '#000000',
  },
}
SCSS
$custom: #af97cf;
$custom-light: #c7b5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af97cf",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 265.714,
    "s": 36.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71744,
    "c": 0.08394,
    "h": 304
  },
  "luminance": 0.35752
}

Semantic roles & 50–950 ramp

primary
#AF97CF
secondary
#E2E9D9
accent
#B0367B
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF97CF

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

Preview Lab → · Contrast checker → · Palette generator →

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