#AF97EF#AF97EF

#AF97EF is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.2% C 0.127 H 295.6°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AF97EF
RGBrgb(175, 151, 239)
HSLhsl(256, 73%, 76%)
HSVhsv(256, 37%, 94%)
CMYKcmyk(26.8%, 36.8%, 0%, 6.3%)
CIE-LABlab(67.63, 27.24, -41.07)
CIE-LCHlch(67.63, 49.28, 303.55°)
OKLaboklab(73.17% 0.0549 -0.1144)
OKLCHoklch(73.17% 0.127 295.6)
XYZxyz(44.3221, 37.4787, 86.5436)
Luminance0.3748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97EF #D7EF97
analogous
#97ABEF #AF97EF #DB97EF
triadic
#AF97EF #EFAF97 #97EFAF
tetradic
#AF97EF #EF97AB #D7EF97 #97EFDB
square
#AF97EF #EF97AB #D7EF97 #97EFDB
split-complementary
#AF97EF #EFDB97 #ABEF97
monochromatic
#5D2DDF #8662E7 #AF97EF #D8CCF7 #EBE4FB

Accessibility & contrast

On white

2.47
#AF97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#AF97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97EF
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97EF#FFFFFF#000000##000000
##AF97EF1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F2
Deuteranopia (green-blind)
#83A4ED
Tritanopia (blue-blind)
#A2A6B8
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af97ef;
/* rgb */ color: rgb(175, 151, 239);
/* oklch */ color: oklch(73.2% 0.127 295.6);
Tailwind
colors: {
  custom: {
    50: '#c8b5f4',
    500: '#af97ef',
    950: '#000000',
  },
}
SCSS
$custom: #af97ef;
$custom-light: #c8b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ef",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 256.364,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73172,
    "c": 0.12687,
    "h": 295.6
  },
  "luminance": 0.37479
}

Semantic roles & 50–950 ramp

primary
#AF97EF
secondary
#EBF3D8
accent
#D510A0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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