#AF98DF#AF98DF

#AF98DF is a light, moderate violet. Relative luminance 0.369; OKLCH L 72.6% C 0.104 H 298.7°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AF98DF
RGBrgb(175, 152, 223)
HSLhsl(259, 53%, 74%)
HSVhsv(259, 32%, 87%)
CMYKcmyk(21.5%, 31.8%, 0%, 12.5%)
CIE-LABlab(67.20, 22.89, -32.94)
CIE-LCHlch(67.20, 40.11, 304.80°)
OKLaboklab(72.62% 0.0498 -0.091)
OKLCHoklch(72.62% 0.104 298.7)
XYZxyz(42.2238, 36.8979, 74.6952)
Luminance0.3690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98DF #C8DF98
analogous
#98A4DF #AF98DF #D298DF
triadic
#AF98DF #DFAF98 #98DFAF
tetradic
#AF98DF #DF98A4 #C8DF98 #98DFD2
square
#AF98DF #DF98A4 #C8DF98 #98DFD2
split-complementary
#AF98DF #DFD298 #A4DF98
monochromatic
#673CC1 #8B69D0 #AF98DF #D3C7EE #EDE8F8

Accessibility & contrast

On white

2.51
#AF98DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AF98DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98DF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98DF#FFFFFF#000000##000000
##AF98DF1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A4E2
Deuteranopia (green-blind)
#8BA3DD
Tritanopia (blue-blind)
#A6A3B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #af98df;
/* rgb */ color: rgb(175, 152, 223);
/* oklch */ color: oklch(72.6% 0.104 298.7);
Tailwind
colors: {
  custom: {
    50: '#c8b6e9',
    500: '#af98df',
    950: '#000000',
  },
}
SCSS
$custom: #af98df;
$custom-light: #c8b6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af98df",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 259.437,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72618,
    "c": 0.10374,
    "h": 298.7
  },
  "luminance": 0.36898
}

Semantic roles & 50–950 ramp

primary
#AF98DF
secondary
#E9EFDC
accent
#C0258E
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF98DF

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

Preview Lab → · Contrast checker → · Palette generator →

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