#AF97FB#AF97FB

#AF97FB is a light, vivid violet. Relative luminance 0.382; OKLCH L 73.8% C 0.143 H 293.6°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AF97FB
RGBrgb(175, 151, 251)
HSLhsl(254, 93%, 79%)
HSVhsv(254, 40%, 98%)
CMYKcmyk(30.3%, 39.8%, 0%, 1.6%)
CIE-LABlab(68.18, 30.17, -46.78)
CIE-LCHlch(68.18, 55.66, 302.82°)
OKLaboklab(73.76% 0.0573 -0.1309)
OKLCHoklch(73.76% 0.143 293.6)
XYZxyz(46.1540, 38.2114, 96.1920)
Luminance0.3821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FB #E3FB97
analogous
#97B1FB #AF97FB #E197FB
triadic
#AF97FB #FBAF97 #97FBAF
tetradic
#AF97FB #FB97B1 #E3FB97 #97FBE1
square
#AF97FB #FB97B1 #E3FB97 #97FBE1
split-complementary
#AF97FB #FBE197 #B1FB97
monochromatic
#5421F6 #825CF9 #AF97FB #DCD2FD #E8E2FE

Accessibility & contrast

On white

2.43
#AF97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#AF97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97FB
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97FB#FFFFFF#000000##000000
##AF97FB1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA7FF
Deuteranopia (green-blind)
#7DA5F8
Tritanopia (blue-blind)
#9EA9BD
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af97fb;
/* rgb */ color: rgb(175, 151, 251);
/* oklch */ color: oklch(73.8% 0.143 293.6);
Tailwind
colors: {
  custom: {
    50: '#c9b5fd',
    500: '#af97fb',
    950: '#000000',
  },
}
SCSS
$custom: #af97fb;
$custom-light: #c9b5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af97fb",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 254.4,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73761,
    "c": 0.14288,
    "h": 293.6
  },
  "luminance": 0.38212
}

Semantic roles & 50–950 ramp

primary
#AF97FB
secondary
#EEF6D5
accent
#E600AE
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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