#AF97CD#AF97CD

#AF97CD is a light, moderate violet. Relative luminance 0.357; OKLCH L 71.7% C 0.081 H 304.7°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#AF97CD
RGBrgb(175, 151, 205)
HSLhsl(267, 35%, 70%)
HSVhsv(267, 26%, 80%)
CMYKcmyk(14.6%, 26.3%, 0%, 19.6%)
CIE-LABlab(66.26, 19.40, -24.42)
CIE-LCHlch(66.26, 31.19, 308.46°)
OKLaboklab(71.66% 0.0463 -0.0668)
OKLCHoklch(71.66% 0.081 304.7)
XYZxyz(39.7631, 35.6551, 62.5331)
Luminance0.3565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97CD #B5CD97
analogous
#979ACD #AF97CD #CA97CD
triadic
#AF97CD #CDAF97 #97CDAF
tetradic
#AF97CD #CD979A #B5CD97 #97CDCA
square
#AF97CD #CD979A #B5CD97 #97CDCA
split-complementary
#AF97CD #CDCA97 #9ACD97
monochromatic
#704C9E #8F6EB9 #AF97CD #CFC0E1 #EFEAF5

Accessibility & contrast

On white

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

On black

8.13
#AF97CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97CD
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97CD#FFFFFF#000000##000000
##AF97CD1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA0CF
Deuteranopia (green-blind)
#91A1CB
Tritanopia (blue-blind)
#AB9FAA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af97cd;
/* rgb */ color: rgb(175, 151, 205);
/* oklch */ color: oklch(71.7% 0.081 304.7);
Tailwind
colors: {
  custom: {
    50: '#c7b5dc',
    500: '#af97cd',
    950: '#000000',
  },
}
SCSS
$custom: #af97cd;
$custom-light: #c7b5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af97cd",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 266.667,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.71662,
    "c": 0.08128,
    "h": 304.7
  },
  "luminance": 0.35655
}

Semantic roles & 50–950 ramp

primary
#AF97CD
secondary
#E1E8D8
accent
#AE3879
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF97CD

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

Preview Lab → · Contrast checker → · Palette generator →

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