#AF97FD#AF97FD

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

Color values

HEX#AF97FD
RGBrgb(175, 151, 253)
HSLhsl(254, 96%, 79%)
HSVhsv(254, 40%, 99%)
CMYKcmyk(30.8%, 40.3%, 0%, 0.8%)
CIE-LABlab(68.27, 30.67, -47.72)
CIE-LCHlch(68.27, 56.72, 302.73°)
OKLaboklab(73.86% 0.0576 -0.1336)
OKLCHoklch(73.86% 0.146 293.3)
XYZxyz(46.4710, 38.3382, 97.8611)
Luminance0.3834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FD #E5FD97
analogous
#97B2FD #AF97FD #E297FD
triadic
#AF97FD #FDAF97 #97FDAF
tetradic
#AF97FD #FD97B2 #E5FD97 #97FDE2
square
#AF97FD #FD97B2 #E5FD97 #97FDE2
split-complementary
#AF97FD #FDE297 #B2FD97
monochromatic
#531FFB #815BFC #AF97FD #DDD3FE #E8E1FE

Accessibility & contrast

On white

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

On black

8.67
#AF97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97FD
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97FD#FFFFFF#000000##000000
##AF97FD1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#7CA5FA
Tritanopia (blue-blind)
#9DAABE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af97fd;
/* rgb */ color: rgb(175, 151, 253);
/* oklch */ color: oklch(73.9% 0.146 293.3);
Tailwind
colors: {
  custom: {
    50: '#c9b5fe',
    500: '#af97fd',
    950: '#000000',
  },
}
SCSS
$custom: #af97fd;
$custom-light: #c9b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af97fd",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 254.118,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73862,
    "c": 0.14554,
    "h": 293.3
  },
  "luminance": 0.38339
}

Semantic roles & 50–950 ramp

primary
#AF97FD
secondary
#EFF7D4
accent
#E600AF
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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