#AF97FC#AF97FC

#AF97FC is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.8% C 0.144 H 293.5°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AF97FC
RGBrgb(175, 151, 252)
HSLhsl(254, 94%, 79%)
HSVhsv(254, 40%, 99%)
CMYKcmyk(30.6%, 40.1%, 0%, 1.2%)
CIE-LABlab(68.22, 30.42, -47.25)
CIE-LCHlch(68.22, 56.19, 302.78°)
OKLaboklab(73.81% 0.0575 -0.1323)
OKLCHoklch(73.81% 0.144 293.5)
XYZxyz(46.3121, 38.2747, 97.0244)
Luminance0.3827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FC #E4FC97
analogous
#97B2FC #AF97FC #E197FC
triadic
#AF97FC #FCAF97 #97FCAF
tetradic
#AF97FC #FC97B2 #E4FC97 #97FCE1
square
#AF97FC #FC97B2 #E4FC97 #97FCE1
split-complementary
#AF97FC #FCE197 #B2FC97
monochromatic
#5320F9 #815CFA #AF97FC #DDD2FE #E8E1FE

Accessibility & contrast

On white

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

On black

8.65
#AF97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97FC
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97FC#FFFFFF#000000##000000
##AF97FC1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af97fc;
/* rgb */ color: rgb(175, 151, 252);
/* oklch */ color: oklch(73.8% 0.144 293.5);
Tailwind
colors: {
  custom: {
    50: '#c9b5fe',
    500: '#af97fc',
    950: '#000000',
  },
}
SCSS
$custom: #af97fc;
$custom-light: #c9b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af97fc",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 254.257,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.73812,
    "c": 0.14421,
    "h": 293.5
  },
  "luminance": 0.38275
}

Semantic roles & 50–950 ramp

primary
#AF97FC
secondary
#EEF6D5
accent
#E600AF
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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