#AF97EE#AF97EE

#AF97EE is a light, vivid violet. Relative luminance 0.374; OKLCH L 73.1% C 0.126 H 295.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AF97EE
RGBrgb(175, 151, 238)
HSLhsl(257, 72%, 76%)
HSVhsv(257, 37%, 93%)
CMYKcmyk(26.5%, 36.6%, 0%, 6.7%)
CIE-LABlab(67.59, 27.00, -40.59)
CIE-LCHlch(67.59, 48.74, 303.63°)
OKLaboklab(73.12% 0.0547 -0.113)
OKLCHoklch(73.12% 0.126 295.8)
XYZxyz(44.1748, 37.4197, 85.7677)
Luminance0.3742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97EE #D6EE97
analogous
#97ABEE #AF97EE #DB97EE
triadic
#AF97EE #EEAF97 #97EEAF
tetradic
#AF97EE #EE97AB #D6EE97 #97EEDB
square
#AF97EE #EE97AB #D6EE97 #97EEDB
split-complementary
#AF97EE #EEDB97 #ABEE97
monochromatic
#5E2EDD #8762E5 #AF97EE #D7CCF7 #EBE5FB

Accessibility & contrast

On white

2.48
#AF97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AF97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97EE
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97EE#FFFFFF#000000##000000
##AF97EE1.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F1
Deuteranopia (green-blind)
#84A3EC
Tritanopia (blue-blind)
#A2A6B7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af97ee;
/* rgb */ color: rgb(175, 151, 238);
/* oklch */ color: oklch(73.1% 0.126 295.8);
Tailwind
colors: {
  custom: {
    50: '#c8b5f4',
    500: '#af97ee',
    950: '#000000',
  },
}
SCSS
$custom: #af97ee;
$custom-light: #c8b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ee",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 256.552,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73124,
    "c": 0.12553,
    "h": 295.8
  },
  "luminance": 0.3742
}

Semantic roles & 50–950 ramp

primary
#AF97EE
secondary
#EBF2D9
accent
#D4129E
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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