#AF97FA#AF97FA

#AF97FA is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.142 H 293.8°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AF97FA
RGBrgb(175, 151, 250)
HSLhsl(255, 91%, 79%)
HSVhsv(255, 40%, 98%)
CMYKcmyk(30%, 39.6%, 0%, 2%)
CIE-LABlab(68.13, 29.93, -46.30)
CIE-LCHlch(68.13, 55.13, 302.87°)
OKLaboklab(73.71% 0.0571 -0.1295)
OKLCHoklch(73.71% 0.142 293.8)
XYZxyz(45.9968, 38.1486, 95.3640)
Luminance0.3815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97FA #E2FA97
analogous
#97B0FA #AF97FA #E097FA
triadic
#AF97FA #FAAF97 #97FAAF
tetradic
#AF97FA #FA97B0 #E2FA97 #97FAE0
square
#AF97FA #FA97B0 #E2FA97 #97FAE0
split-complementary
#AF97FA #FAE097 #B0FA97
monochromatic
#5522F4 #825DF7 #AF97FA #DCD1FD #E9E2FE

Accessibility & contrast

On white

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

On black

8.63
#AF97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97FA
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97FA#FFFFFF#000000##000000
##AF97FA1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA7FE
Deuteranopia (green-blind)
#7DA4F8
Tritanopia (blue-blind)
#9EA9BD
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af97fa;
/* rgb */ color: rgb(175, 151, 250);
/* oklch */ color: oklch(73.7% 0.142 293.8);
Tailwind
colors: {
  custom: {
    50: '#c9b5fc',
    500: '#af97fa',
    950: '#000000',
  },
}
SCSS
$custom: #af97fa;
$custom-light: #c9b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af97fa",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 254.545,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.73711,
    "c": 0.14155,
    "h": 293.8
  },
  "luminance": 0.38149
}

Semantic roles & 50–950 ramp

primary
#AF97FA
secondary
#EEF6D5
accent
#E600AE
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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