#AF96EA#AF96EA

#AF96EA is a light, vivid violet. Relative luminance 0.369; OKLCH L 72.8% C 0.122 H 297.0°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AF96EA
RGBrgb(175, 150, 234)
HSLhsl(258, 67%, 75%)
HSVhsv(258, 36%, 92%)
CMYKcmyk(25.2%, 35.9%, 0%, 8.2%)
CIE-LABlab(67.18, 26.60, -39.04)
CIE-LCHlch(67.18, 47.24, 304.27°)
OKLaboklab(72.75% 0.0552 -0.1085)
OKLCHoklch(72.75% 0.122 297)
XYZxyz(43.4334, 36.8668, 82.6537)
Luminance0.3687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96EA #D1EA96
analogous
#96A7EA #AF96EA #D996EA
triadic
#AF96EA #EAAF96 #96EAAF
tetradic
#AF96EA #EA96A7 #D1EA96 #96EAD9
square
#AF96EA #EA96A7 #D1EA96 #96EAD9
split-complementary
#AF96EA #EAD996 #A7EA96
monochromatic
#6130D6 #8863E0 #AF96EA #D6C9F4 #ECE5FA

Accessibility & contrast

On white

2.51
#AF96EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AF96EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96EA
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96EA#FFFFFF#000000##000000
##AF96EA1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A4ED
Deuteranopia (green-blind)
#84A3E8
Tritanopia (blue-blind)
#A3A4B5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af96ea;
/* rgb */ color: rgb(175, 150, 234);
/* oklch */ color: oklch(72.8% 0.122 297.0);
Tailwind
colors: {
  custom: {
    50: '#c8b5f1',
    500: '#af96ea',
    950: '#000000',
  },
}
SCSS
$custom: #af96ea;
$custom-light: #c8b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af96ea",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 234
  },
  "hsl": {
    "h": 257.857,
    "s": 66.667,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72752,
    "c": 0.12174,
    "h": 297
  },
  "luminance": 0.36867
}

Semantic roles & 50–950 ramp

primary
#AF96EA
secondary
#EAF1DA
accent
#CF1798
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF96EA

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

Preview Lab → · Contrast checker → · Palette generator →

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