#AF97DF#AF97DF

#AF97DF is a light, moderate violet. Relative luminance 0.366; OKLCH L 72.4% C 0.105 H 299.1°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#AF97DF
RGBrgb(175, 151, 223)
HSLhsl(260, 53%, 73%)
HSVhsv(260, 32%, 87%)
CMYKcmyk(21.5%, 32.3%, 0%, 12.5%)
CIE-LABlab(66.96, 23.45, -33.32)
CIE-LCHlch(66.96, 40.75, 305.14°)
OKLaboklab(72.43% 0.0512 -0.0921)
OKLCHoklch(72.43% 0.105 299.1)
XYZxyz(42.0622, 36.5747, 74.6414)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97DF #C7DF97
analogous
#97A3DF #AF97DF #D397DF
triadic
#AF97DF #DFAF97 #97DFAF
tetradic
#AF97DF #DF97A3 #C7DF97 #97DFD3
square
#AF97DF #DF97A3 #C7DF97 #97DFD3
split-complementary
#AF97DF #DFD397 #A3DF97
monochromatic
#683BC0 #8B68D1 #AF97DF #D3C6ED #EDE8F8

Accessibility & contrast

On white

2.53
#AF97DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#AF97DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97DF
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97DF#FFFFFF#000000##000000
##AF97DF1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A3E2
Deuteranopia (green-blind)
#8AA2DD
Tritanopia (blue-blind)
#A6A2B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af97df;
/* rgb */ color: rgb(175, 151, 223);
/* oklch */ color: oklch(72.4% 0.105 299.1);
Tailwind
colors: {
  custom: {
    50: '#c8b5e9',
    500: '#af97df',
    950: '#000000',
  },
}
SCSS
$custom: #af97df;
$custom-light: #c8b5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af97df",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 260,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72431,
    "c": 0.10537,
    "h": 299.1
  },
  "luminance": 0.36575
}

Semantic roles & 50–950 ramp

primary
#AF97DF
secondary
#E9EFDC
accent
#C0258D
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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