#AF98EC#AF98EC

#AF98EC is a light, vivid violet. Relative luminance 0.376; OKLCH L 73.2% C 0.121 H 295.9°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AF98EC
RGBrgb(175, 152, 236)
HSLhsl(256, 69%, 76%)
HSVhsv(256, 36%, 93%)
CMYKcmyk(25.8%, 35.6%, 0%, 7.5%)
CIE-LABlab(67.74, 25.95, -39.25)
CIE-LCHlch(67.74, 47.05, 303.47°)
OKLaboklab(73.21% 0.0529 -0.1091)
OKLCHoklch(73.21% 0.121 295.9)
XYZxyz(44.0442, 37.6261, 84.2827)
Luminance0.3763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98EC #D5EC98
analogous
#98ABEC #AF98EC #D998EC
triadic
#AF98EC #ECAF98 #98ECAF
tetradic
#AF98EC #EC98AB #D5EC98 #98ECD9
square
#AF98EC #EC98AB #D5EC98 #98ECD9
split-complementary
#AF98EC #ECD998 #ABEC98
monochromatic
#5F31D9 #8764E2 #AF98EC #D7CCF6 #EBE5FA

Accessibility & contrast

On white

2.46
#AF98EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AF98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98EC
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98EC#FFFFFF#000000##000000
##AF98EC1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A6EF
Deuteranopia (green-blind)
#86A4EA
Tritanopia (blue-blind)
#A3A6B7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af98ec;
/* rgb */ color: rgb(175, 152, 236);
/* oklch */ color: oklch(73.2% 0.121 295.9);
Tailwind
colors: {
  custom: {
    50: '#c8b6f2',
    500: '#af98ec',
    950: '#000000',
  },
}
SCSS
$custom: #af98ec;
$custom-light: #c8b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af98ec",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 256.429,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73212,
    "c": 0.12127,
    "h": 295.9
  },
  "luminance": 0.37627
}

Semantic roles & 50–950 ramp

primary
#AF98EC
secondary
#EBF2D9
accent
#D1159D
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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