#AF98CD#AF98CD

#AF98CD is a light, moderate violet. Relative luminance 0.360; OKLCH L 71.9% C 0.080 H 304.3°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#AF98CD
RGBrgb(175, 152, 205)
HSLhsl(266, 35%, 70%)
HSVhsv(266, 26%, 80%)
CMYKcmyk(14.6%, 25.9%, 0%, 19.6%)
CIE-LABlab(66.50, 18.84, -24.04)
CIE-LCHlch(66.50, 30.55, 308.08°)
OKLaboklab(71.85% 0.0448 -0.0657)
OKLCHoklch(71.85% 0.08 304.3)
XYZxyz(39.9247, 35.9783, 62.5870)
Luminance0.3598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98CD #B6CD98
analogous
#989BCD #AF98CD #CA98CD
triadic
#AF98CD #CDAF98 #98CDAF
tetradic
#AF98CD #CD989B #B6CD98 #98CDCA
square
#AF98CD #CD989B #B6CD98 #98CDCA
split-complementary
#AF98CD #CDCA98 #9BCD98
monochromatic
#704D9E #8F6FB9 #AF98CD #CFC1E1 #EFEAF5

Accessibility & contrast

On white

2.56
#AF98CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#AF98CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98CD
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98CD#FFFFFF#000000##000000
##AF98CD1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA1CF
Deuteranopia (green-blind)
#92A2CB
Tritanopia (blue-blind)
#AB9FAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af98cd;
/* rgb */ color: rgb(175, 152, 205);
/* oklch */ color: oklch(71.9% 0.080 304.3);
Tailwind
colors: {
  custom: {
    50: '#c7b6dc',
    500: '#af98cd',
    950: '#000000',
  },
}
SCSS
$custom: #af98cd;
$custom-light: #c7b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af98cd",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 266.038,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.71853,
    "c": 0.07957,
    "h": 304.3
  },
  "luminance": 0.35978
}

Semantic roles & 50–950 ramp

primary
#AF98CD
secondary
#E1E8D9
accent
#AD387B
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF98CD

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

Preview Lab → · Contrast checker → · Palette generator →

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