#AF98EB#AF98EB

#AF98EB is a light, moderate violet. Relative luminance 0.376; OKLCH L 73.2% C 0.120 H 296.0°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AF98EB
RGBrgb(175, 152, 235)
HSLhsl(257, 67%, 76%)
HSVhsv(257, 35%, 92%)
CMYKcmyk(25.5%, 35.3%, 0%, 7.8%)
CIE-LABlab(67.70, 25.71, -38.77)
CIE-LCHlch(67.70, 46.52, 303.56°)
OKLaboklab(73.17% 0.0527 -0.1077)
OKLCHoklch(73.17% 0.12 296)
XYZxyz(43.8993, 37.5681, 83.5197)
Luminance0.3757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98EB #D4EB98
analogous
#98AAEB #AF98EB #D998EB
triadic
#AF98EB #EBAF98 #98EBAF
tetradic
#AF98EB #EB98AA #D4EB98 #98EBD9
square
#AF98EB #EB98AA #D4EB98 #98EBD9
split-complementary
#AF98EB #EBD998 #AAEB98
monochromatic
#5F32D7 #8765E1 #AF98EB #D7CBF5 #EBE5FA

Accessibility & contrast

On white

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

On black

8.51
#AF98EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98EB
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98EB#FFFFFF#000000##000000
##AF98EB1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A5EE
Deuteranopia (green-blind)
#86A4E9
Tritanopia (blue-blind)
#A3A6B7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af98eb;
/* rgb */ color: rgb(175, 152, 235);
/* oklch */ color: oklch(73.2% 0.120 296.0);
Tailwind
colors: {
  custom: {
    50: '#c8b6f1',
    500: '#af98eb',
    950: '#000000',
  },
}
SCSS
$custom: #af98eb;
$custom-light: #c8b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af98eb",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 256.627,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73166,
    "c": 0.11993,
    "h": 296
  },
  "luminance": 0.37569
}

Semantic roles & 50–950 ramp

primary
#AF98EB
secondary
#EBF2D9
accent
#CF169C
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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