#AF98CC#AF98CC

#AF98CC is a light, moderate violet. Relative luminance 0.359; OKLCH L 71.8% C 0.078 H 304.7°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#AF98CC
RGBrgb(175, 152, 204)
HSLhsl(267, 34%, 70%)
HSVhsv(267, 25%, 80%)
CMYKcmyk(14.2%, 25.5%, 0%, 20%)
CIE-LABlab(66.47, 18.62, -23.55)
CIE-LCHlch(66.47, 30.02, 308.34°)
OKLaboklab(71.81% 0.0445 -0.0643)
OKLCHoklch(71.81% 0.078 304.7)
XYZxyz(39.8044, 35.9302, 61.9533)
Luminance0.3593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98CC #B5CC98
analogous
#989BCC #AF98CC #C998CC
triadic
#AF98CC #CCAF98 #98CCAF
tetradic
#AF98CC #CC989B #B5CC98 #98CCC9
square
#AF98CC #CC989B #B5CC98 #98CCC9
split-complementary
#AF98CC #CCC998 #9BCC98
monochromatic
#704D9C #8F6FB8 #AF98CC #CFC1E0 #EFEAF5

Accessibility & contrast

On white

2.57
#AF98CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#AF98CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98CC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98CC#FFFFFF#000000##000000
##AF98CC1.002.578.198.19
#FFFFFF2.571.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA1CE
Deuteranopia (green-blind)
#93A2CA
Tritanopia (blue-blind)
#AB9FAA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af98cc;
/* rgb */ color: rgb(175, 152, 204);
/* oklch */ color: oklch(71.8% 0.078 304.7);
Tailwind
colors: {
  custom: {
    50: '#c7b6db',
    500: '#af98cc',
    950: '#000000',
  },
}
SCSS
$custom: #af98cc;
$custom-light: #c7b6db;
$custom-dark: #000000;
JSON
{
  "hex": "#af98cc",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 204
  },
  "hsl": {
    "h": 266.538,
    "s": 33.766,
    "l": 69.804
  },
  "oklch": {
    "l": 0.71812,
    "c": 0.07824,
    "h": 304.7
  },
  "luminance": 0.3593
}

Semantic roles & 50–950 ramp

primary
#AF98CC
secondary
#E1E7D9
accent
#AD3979
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF98CC

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

Preview Lab → · Contrast checker → · Palette generator →

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