#AF98FC#AF98FC

#AF98FC is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.143 H 293.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AF98FC
RGBrgb(175, 152, 252)
HSLhsl(254, 94%, 79%)
HSVhsv(254, 40%, 99%)
CMYKcmyk(30.6%, 39.7%, 0%, 1.2%)
CIE-LABlab(68.46, 29.86, -46.88)
CIE-LCHlch(68.46, 55.58, 302.50°)
OKLaboklab(73.99% 0.0561 -0.1312)
OKLCHoklch(73.99% 0.143 293.2)
XYZxyz(46.4737, 38.5979, 97.0782)
Luminance0.3860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98FC #E5FC98
analogous
#98B3FC #AF98FC #E198FC
triadic
#AF98FC #FCAF98 #98FCAF
tetradic
#AF98FC #FC98B3 #E5FC98 #98FCE1
square
#AF98FC #FC98B3 #E5FC98 #98FCE1
split-complementary
#AF98FC #FCE198 #B3FC98
monochromatic
#5321F9 #815DFA #AF98FC #DDD3FE #E8E1FE

Accessibility & contrast

On white

2.41
#AF98FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#AF98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98FC
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98FC#FFFFFF#000000##000000
##AF98FC1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#7DA5F9
Tritanopia (blue-blind)
#9EAABE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af98fc;
/* rgb */ color: rgb(175, 152, 252);
/* oklch */ color: oklch(74.0% 0.143 293.2);
Tailwind
colors: {
  custom: {
    50: '#c9b6fe',
    500: '#af98fc',
    950: '#000000',
  },
}
SCSS
$custom: #af98fc;
$custom-light: #c9b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af98fc",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 253.8,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73991,
    "c": 0.1427,
    "h": 293.2
  },
  "luminance": 0.38599
}

Semantic roles & 50–950 ramp

primary
#AF98FC
secondary
#EFF6D5
accent
#E600B1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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