#AF98DB#AF98DB

#AF98DB is a light, moderate violet. Relative luminance 0.367; OKLCH L 72.4% C 0.098 H 299.7°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#AF98DB
RGBrgb(175, 152, 219)
HSLhsl(261, 48%, 73%)
HSVhsv(261, 31%, 86%)
CMYKcmyk(20.1%, 30.6%, 0%, 14.1%)
CIE-LABlab(67.04, 21.97, -30.98)
CIE-LCHlch(67.04, 37.98, 305.34°)
OKLaboklab(72.44% 0.0488 -0.0854)
OKLCHoklch(72.44% 0.098 299.7)
XYZxyz(41.6909, 36.6848, 71.8886)
Luminance0.3669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98DB #C4DB98
analogous
#98A2DB #AF98DB #D098DB
triadic
#AF98DB #DBAF98 #98DBAF
tetradic
#AF98DB #DB98A2 #C4DB98 #98DBD0
square
#AF98DB #DB98A2 #C4DB98 #98DBD0
split-complementary
#AF98DB #DBD098 #A2DB98
monochromatic
#6A40B8 #8C6BCB #AF98DB #D2C5EB #EDE8F7

Accessibility & contrast

On white

2.52
#AF98DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#AF98DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98DB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98DB#FFFFFF#000000##000000
##AF98DB1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A3DE
Deuteranopia (green-blind)
#8DA3D9
Tritanopia (blue-blind)
#A7A2B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af98db;
/* rgb */ color: rgb(175, 152, 219);
/* oklch */ color: oklch(72.4% 0.098 299.7);
Tailwind
colors: {
  custom: {
    50: '#c7b6e6',
    500: '#af98db',
    950: '#000000',
  },
}
SCSS
$custom: #af98db;
$custom-light: #c7b6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af98db",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 260.597,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72442,
    "c": 0.09835,
    "h": 299.7
  },
  "luminance": 0.36685
}

Semantic roles & 50–950 ramp

primary
#AF98DB
secondary
#E8EEDD
accent
#BB2A8A
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF98DB

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

Preview Lab → · Contrast checker → · Palette generator →

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