#AF98CA#AF98CA

#AF98CA is a light, moderate violet. Relative luminance 0.358; OKLCH L 71.7% C 0.076 H 305.5°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AF98CA
RGBrgb(175, 152, 202)
HSLhsl(268, 32%, 69%)
HSVhsv(268, 25%, 79%)
CMYKcmyk(13.4%, 24.8%, 0%, 20.8%)
CIE-LABlab(66.39, 18.19, -22.54)
CIE-LCHlch(66.39, 28.97, 308.90°)
OKLaboklab(71.73% 0.0439 -0.0615)
OKLCHoklch(71.73% 0.076 305.5)
XYZxyz(39.5661, 35.8348, 60.6981)
Luminance0.3584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98CA #B3CA98
analogous
#989ACA #AF98CA #C898CA
triadic
#AF98CA #CAAF98 #98CAAF
tetradic
#AF98CA #CA989A #B3CA98 #98CAC8
square
#AF98CA #CA989A #B3CA98 #98CAC8
split-complementary
#AF98CA #CAC898 #9ACA98
monochromatic
#714F99 #9070B5 #AF98CA #CEC0DF #EEE9F4

Accessibility & contrast

On white

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

On black

8.17
#AF98CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98CA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98CA#FFFFFF#000000##000000
##AF98CA1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA1CC
Deuteranopia (green-blind)
#93A2C8
Tritanopia (blue-blind)
#AB9FA9
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af98ca;
/* rgb */ color: rgb(175, 152, 202);
/* oklch */ color: oklch(71.7% 0.076 305.5);
Tailwind
colors: {
  custom: {
    50: '#c7b6da',
    500: '#af98ca',
    950: '#000000',
  },
}
SCSS
$custom: #af98ca;
$custom-light: #c7b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#af98ca",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 202
  },
  "hsl": {
    "h": 267.6,
    "s": 32.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71732,
    "c": 0.07558,
    "h": 305.5
  },
  "luminance": 0.35835
}

Semantic roles & 50–950 ramp

primary
#AF98CA
secondary
#DFE6D8
accent
#AB3B77
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#131114
muted
#828083

Preview Lab

Preview with #AF98CA

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

Preview Lab → · Contrast checker → · Palette generator →

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