#AF98DD#AF98DD

#AF98DD is a light, moderate violet. Relative luminance 0.368; OKLCH L 72.5% C 0.101 H 299.2°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AF98DD
RGBrgb(175, 152, 221)
HSLhsl(260, 50%, 73%)
HSVhsv(260, 31%, 87%)
CMYKcmyk(20.8%, 31.2%, 0%, 13.3%)
CIE-LABlab(67.12, 22.43, -31.96)
CIE-LCHlch(67.12, 39.05, 305.06°)
OKLaboklab(72.53% 0.0493 -0.0882)
OKLCHoklch(72.53% 0.101 299.2)
XYZxyz(41.9557, 36.7907, 73.2835)
Luminance0.3679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98DD #C6DD98
analogous
#98A3DD #AF98DD #D198DD
triadic
#AF98DD #DDAF98 #98DDAF
tetradic
#AF98DD #DD98A3 #C6DD98 #98DDD1
square
#AF98DD #DD98A3 #C6DD98 #98DDD1
split-complementary
#AF98DD #DDD198 #A3DD98
monochromatic
#683EBC #8B6ACE #AF98DD #D3C6EC #EDE8F7

Accessibility & contrast

On white

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

On black

8.36
#AF98DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98DD
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98DD#FFFFFF#000000##000000
##AF98DD1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A3E0
Deuteranopia (green-blind)
#8CA3DB
Tritanopia (blue-blind)
#A7A3B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af98dd;
/* rgb */ color: rgb(175, 152, 221);
/* oklch */ color: oklch(72.5% 0.101 299.2);
Tailwind
colors: {
  custom: {
    50: '#c8b6e7',
    500: '#af98dd',
    950: '#000000',
  },
}
SCSS
$custom: #af98dd;
$custom-light: #c8b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af98dd",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 221
  },
  "hsl": {
    "h": 260,
    "s": 50.365,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7253,
    "c": 0.10105,
    "h": 299.2
  },
  "luminance": 0.36791
}

Semantic roles & 50–950 ramp

primary
#AF98DD
secondary
#E8EEDD
accent
#BE288C
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF98DD

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

Preview Lab → · Contrast checker → · Palette generator →

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