#AF98FD#AF98FD

#AF98FD is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.0% C 0.144 H 293.0°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#AF98FD
RGBrgb(175, 152, 253)
HSLhsl(254, 96%, 79%)
HSVhsv(254, 40%, 99%)
CMYKcmyk(30.8%, 39.9%, 0%, 0.8%)
CIE-LABlab(68.51, 30.11, -47.35)
CIE-LCHlch(68.51, 56.11, 302.45°)
OKLaboklab(74.04% 0.0563 -0.1326)
OKLCHoklch(74.04% 0.144 293)
XYZxyz(46.6326, 38.6615, 97.9150)
Luminance0.3866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98FD #E6FD98
analogous
#98B4FD #AF98FD #E198FD
triadic
#AF98FD #FDAF98 #98FDAF
tetradic
#AF98FD #FD98B4 #E6FD98 #98FDE1
square
#AF98FD #FD98B4 #E6FD98 #98FDE1
split-complementary
#AF98FD #FDE198 #B4FD98
monochromatic
#5220FB #805CFC #AF98FD #DED4FE #E8E1FE

Accessibility & contrast

On white

2.40
#AF98FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#AF98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98FD
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98FD#FFFFFF#000000##000000
##AF98FD1.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#7DA5FA
Tritanopia (blue-blind)
#9DAABE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af98fd;
/* rgb */ color: rgb(175, 152, 253);
/* oklch */ color: oklch(74.0% 0.144 293.0);
Tailwind
colors: {
  custom: {
    50: '#c9b6fe',
    500: '#af98fd',
    950: '#000000',
  },
}
SCSS
$custom: #af98fd;
$custom-light: #c9b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af98fd",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 253.663,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74041,
    "c": 0.14403,
    "h": 293
  },
  "luminance": 0.38662
}

Semantic roles & 50–950 ramp

primary
#AF98FD
secondary
#EFF7D4
accent
#E600B1
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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