#AF98EE#AF98EE

#AF98EE is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.3% C 0.124 H 295.5°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AF98EE
RGBrgb(175, 152, 238)
HSLhsl(256, 72%, 76%)
HSVhsv(256, 36%, 93%)
CMYKcmyk(26.5%, 36.1%, 0%, 6.7%)
CIE-LABlab(67.83, 26.43, -40.21)
CIE-LCHlch(67.83, 48.12, 303.32°)
OKLaboklab(73.31% 0.0533 -0.1119)
OKLCHoklch(73.31% 0.124 295.5)
XYZxyz(44.3364, 37.7430, 85.8216)
Luminance0.3774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98EE #D7EE98
analogous
#98ACEE #AF98EE #DA98EE
triadic
#AF98EE #EEAF98 #98EEAF
tetradic
#AF98EE #EE98AC #D7EE98 #98EEDA
square
#AF98EE #EE98AC #D7EE98 #98EEDA
split-complementary
#AF98EE #EEDA98 #ACEE98
monochromatic
#5D2FDD #8663E5 #AF98EE #D8CDF7 #EBE5FB

Accessibility & contrast

On white

2.46
#AF98EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AF98EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98EE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98EE#FFFFFF#000000##000000
##AF98EE1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F1
Deuteranopia (green-blind)
#85A4EC
Tritanopia (blue-blind)
#A2A7B8
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af98ee;
/* rgb */ color: rgb(175, 152, 238);
/* oklch */ color: oklch(73.3% 0.124 295.5);
Tailwind
colors: {
  custom: {
    50: '#c8b6f4',
    500: '#af98ee',
    950: '#000000',
  },
}
SCSS
$custom: #af98ee;
$custom-light: #c8b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af98ee",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 256.047,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73307,
    "c": 0.12396,
    "h": 295.5
  },
  "luminance": 0.37743
}

Semantic roles & 50–950 ramp

primary
#AF98EE
secondary
#EBF2D9
accent
#D412A0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF98EE

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

Preview Lab → · Contrast checker → · Palette generator →

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