#AF97FF#AF97FF

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

Color values

HEX#AF97FF
RGBrgb(175, 151, 255)
HSLhsl(254, 100%, 80%)
HSVhsv(254, 41%, 100%)
CMYKcmyk(31.4%, 40.8%, 0%, 0%)
CIE-LABlab(68.36, 31.17, -48.66)
CIE-LCHlch(68.36, 57.79, 302.64°)
OKLaboklab(73.96% 0.058 -0.1364)
OKLCHoklch(73.96% 0.148 293)
XYZxyz(46.7912, 38.4663, 99.5479)
Luminance0.3847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FF #E7FF97
analogous
#97B3FF #AF97FF #E397FF
triadic
#AF97FF #FFAF97 #97FFAF
tetradic
#AF97FF #FF97B3 #E7FF97 #97FFE3
square
#AF97FF #FF97B3 #E7FF97 #97FFE3
split-complementary
#AF97FF #FFE397 #B3FF97
monochromatic
#511DFF #805AFF #AF97FF #DED4FF #E7E0FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF97FF#FFFFFF#000000##000000
##AF97FF1.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)
#78A8FF
Deuteranopia (green-blind)
#7AA5FC
Tritanopia (blue-blind)
#9DAABF
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af97ff;
/* rgb */ color: rgb(175, 151, 255);
/* oklch */ color: oklch(74.0% 0.148 293.0);
Tailwind
colors: {
  custom: {
    50: '#c9b5ff',
    500: '#af97ff',
    950: '#000000',
  },
}
SCSS
$custom: #af97ff;
$custom-light: #c9b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ff",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 253.846,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.73964,
    "c": 0.1482,
    "h": 293
  },
  "luminance": 0.38467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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