#AF98FA#AF98FA

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

Color values

HEX#AF98FA
RGBrgb(175, 152, 250)
HSLhsl(254, 91%, 79%)
HSVhsv(254, 39%, 98%)
CMYKcmyk(30%, 39.2%, 0%, 2%)
CIE-LABlab(68.37, 29.36, -45.93)
CIE-LCHlch(68.37, 54.51, 302.59°)
OKLaboklab(73.89% 0.0558 -0.1284)
OKLCHoklch(73.89% 0.14 293.5)
XYZxyz(46.1584, 38.4718, 95.4179)
Luminance0.3847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98FA #E3FA98
analogous
#98B2FA #AF98FA #E098FA
triadic
#AF98FA #FAAF98 #98FAAF
tetradic
#AF98FA #FA98B2 #E3FA98 #98FAE0
square
#AF98FA #FA98B2 #E3FA98 #98FAE0
split-complementary
#AF98FA #FAE098 #B2FA98
monochromatic
#5423F4 #825EF7 #AF98FA #DCD2FD #E8E2FE

Accessibility & contrast

On white

2.42
#AF98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AF98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98FA
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98FA#FFFFFF#000000##000000
##AF98FA1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#7EA5F8
Tritanopia (blue-blind)
#9EAABD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af98fa;
/* rgb */ color: rgb(175, 152, 250);
/* oklch */ color: oklch(73.9% 0.140 293.5);
Tailwind
colors: {
  custom: {
    50: '#c9b6fc',
    500: '#af98fa',
    950: '#000000',
  },
}
SCSS
$custom: #af98fa;
$custom-light: #c9b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af98fa",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 254.082,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73891,
    "c": 0.14003,
    "h": 293.5
  },
  "luminance": 0.38473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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