#AF97EB#AF97EB

#AF97EB is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.0% C 0.122 H 296.4°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AF97EB
RGBrgb(175, 151, 235)
HSLhsl(257, 68%, 76%)
HSVhsv(257, 36%, 92%)
CMYKcmyk(25.5%, 35.7%, 0%, 7.8%)
CIE-LABlab(67.46, 26.28, -39.14)
CIE-LCHlch(67.46, 47.14, 303.87°)
OKLaboklab(72.98% 0.054 -0.1088)
OKLCHoklch(72.98% 0.122 296.4)
XYZxyz(43.7377, 37.2449, 83.4658)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97EB #D3EB97
analogous
#97A9EB #AF97EB #D997EB
triadic
#AF97EB #EBAF97 #97EBAF
tetradic
#AF97EB #EB97A9 #D3EB97 #97EBD9
square
#AF97EB #EB97A9 #D3EB97 #97EBD9
split-complementary
#AF97EB #EBD997 #A9EB97
monochromatic
#6030D7 #8864E1 #AF97EB #D6CAF5 #EBE5FA

Accessibility & contrast

On white

2.49
#AF97EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AF97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97EB
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97EB#FFFFFF#000000##000000
##AF97EB1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EE
Deuteranopia (green-blind)
#85A3E9
Tritanopia (blue-blind)
#A3A5B6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #af97eb;
/* rgb */ color: rgb(175, 151, 235);
/* oklch */ color: oklch(73.0% 0.122 296.4);
Tailwind
colors: {
  custom: {
    50: '#c8b5f1',
    500: '#af97eb',
    950: '#000000',
  },
}
SCSS
$custom: #af97eb;
$custom-light: #c8b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af97eb",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 257.143,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72982,
    "c": 0.12151,
    "h": 296.4
  },
  "luminance": 0.37245
}

Semantic roles & 50–950 ramp

primary
#AF97EB
secondary
#EBF2D9
accent
#D0169B
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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