#AF97FE#AF97FE

#AF97FE is a light, vivid violet. Relative luminance 0.384; OKLCH L 73.9% C 0.147 H 293.2°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#AF97FE
RGBrgb(175, 151, 254)
HSLhsl(254, 98%, 79%)
HSVhsv(254, 41%, 100%)
CMYKcmyk(31.1%, 40.6%, 0%, 0.4%)
CIE-LABlab(68.32, 30.92, -48.19)
CIE-LCHlch(68.32, 57.26, 302.68°)
OKLaboklab(73.91% 0.0578 -0.135)
OKLCHoklch(73.91% 0.147 293.2)
XYZxyz(46.6307, 38.4021, 98.7023)
Luminance0.3840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FE #E6FE97
analogous
#97B3FE #AF97FE #E397FE
triadic
#AF97FE #FEAF97 #97FEAF
tetradic
#AF97FE #FE97B3 #E6FE97 #97FEE3
square
#AF97FE #FE97B3 #E6FE97 #97FEE3
split-complementary
#AF97FE #FEE397 #B3FE97
monochromatic
#521EFD #805AFD #AF97FE #DED4FF #E8E1FF

Accessibility & contrast

On white

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

On black

8.68
#AF97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97FE
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97FE#FFFFFF#000000##000000
##AF97FE1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A8FF
Deuteranopia (green-blind)
#7BA5FB
Tritanopia (blue-blind)
#9DAABE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af97fe;
/* rgb */ color: rgb(175, 151, 254);
/* oklch */ color: oklch(73.9% 0.147 293.2);
Tailwind
colors: {
  custom: {
    50: '#c9b5ff',
    500: '#af97fe',
    950: '#000000',
  },
}
SCSS
$custom: #af97fe;
$custom-light: #c9b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af97fe",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 253.981,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.73913,
    "c": 0.14687,
    "h": 293.2
  },
  "luminance": 0.38403
}

Semantic roles & 50–950 ramp

primary
#AF97FE
secondary
#EFF7D4
accent
#E600B0
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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