#AF98FB#AF98FB

#AF98FB is a light, vivid violet. Relative luminance 0.385; OKLCH L 73.9% C 0.141 H 293.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AF98FB
RGBrgb(175, 152, 251)
HSLhsl(254, 93%, 79%)
HSVhsv(254, 39%, 98%)
CMYKcmyk(30.3%, 39.4%, 0%, 1.6%)
CIE-LABlab(68.41, 29.61, -46.40)
CIE-LCHlch(68.41, 55.05, 302.54°)
OKLaboklab(73.94% 0.056 -0.1298)
OKLCHoklch(73.94% 0.141 293.3)
XYZxyz(46.3157, 38.5347, 96.2458)
Luminance0.3854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98FB #E4FB98
analogous
#98B3FB #AF98FB #E098FB
triadic
#AF98FB #FBAF98 #98FBAF
tetradic
#AF98FB #FB98B3 #E4FB98 #98FBE0
square
#AF98FB #FB98B3 #E4FB98 #98FBE0
split-complementary
#AF98FB #FBE098 #B3FB98
monochromatic
#5322F6 #815DF9 #AF98FB #DDD3FD #E8E2FE

Accessibility & contrast

On white

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

On black

8.71
#AF98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98FB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98FB#FFFFFF#000000##000000
##AF98FB1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af98fb;
/* rgb */ color: rgb(175, 152, 251);
/* oklch */ color: oklch(73.9% 0.141 293.3);
Tailwind
colors: {
  custom: {
    50: '#c9b6fd',
    500: '#af98fb',
    950: '#000000',
  },
}
SCSS
$custom: #af98fb;
$custom-light: #c9b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af98fb",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 253.939,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.73941,
    "c": 0.14137,
    "h": 293.3
  },
  "luminance": 0.38535
}

Semantic roles & 50–950 ramp

primary
#AF98FB
secondary
#EEF6D5
accent
#E600B0
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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