#AF98EA#AF98EA

#AF98EA is a light, moderate violet. Relative luminance 0.375; OKLCH L 73.1% C 0.119 H 296.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AF98EA
RGBrgb(175, 152, 234)
HSLhsl(257, 66%, 76%)
HSVhsv(257, 35%, 92%)
CMYKcmyk(25.2%, 35%, 0%, 8.2%)
CIE-LABlab(67.66, 25.47, -38.28)
CIE-LCHlch(67.66, 45.99, 303.64°)
OKLaboklab(73.12% 0.0524 -0.1064)
OKLCHoklch(73.12% 0.119 296.2)
XYZxyz(43.7552, 37.5105, 82.7610)
Luminance0.3751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98EA #D3EA98
analogous
#98AAEA #AF98EA #D898EA
triadic
#AF98EA #EAAF98 #98EAAF
tetradic
#AF98EA #EA98AA #D3EA98 #98EAD8
square
#AF98EA #EA98AA #D3EA98 #98EAD8
split-complementary
#AF98EA #EAD898 #AAEA98
monochromatic
#6032D5 #8865E0 #AF98EA #D6CBF4 #EBE6FA

Accessibility & contrast

On white

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

On black

8.50
#AF98EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98EA
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98EA#FFFFFF#000000##000000
##AF98EA1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A5ED
Deuteranopia (green-blind)
#86A4E8
Tritanopia (blue-blind)
#A3A6B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af98ea;
/* rgb */ color: rgb(175, 152, 234);
/* oklch */ color: oklch(73.1% 0.119 296.2);
Tailwind
colors: {
  custom: {
    50: '#c8b6f1',
    500: '#af98ea',
    950: '#000000',
  },
}
SCSS
$custom: #af98ea;
$custom-light: #c8b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af98ea",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 256.829,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73119,
    "c": 0.11858,
    "h": 296.2
  },
  "luminance": 0.37511
}

Semantic roles & 50–950 ramp

primary
#AF98EA
secondary
#EBF1DA
accent
#CE189B
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF98EA

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

Preview Lab → · Contrast checker → · Palette generator →

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