#AF88EC#AF88EC

#AF88EC is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.4% C 0.147 H 300.7°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AF88EC
RGBrgb(175, 136, 236)
HSLhsl(263, 72%, 73%)
HSVhsv(263, 42%, 93%)
CMYKcmyk(25.8%, 42.4%, 0%, 7.5%)
CIE-LABlab(63.98, 34.94, -45.15)
CIE-LCHlch(63.98, 57.09, 307.74°)
OKLaboklab(70.36% 0.0748 -0.1262)
OKLCHoklch(70.36% 0.147 300.7)
XYZxyz(41.6203, 32.7783, 83.4748)
Luminance0.3278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF88EC #C5EC88
analogous
#8893EC #AF88EC #E188EC
triadic
#AF88EC #ECAF88 #88ECAF
tetradic
#AF88EC #EC8893 #C5EC88 #88ECE1
square
#AF88EC #EC8893 #C5EC88 #88ECE1
split-complementary
#AF88EC #ECE188 #93EC88
monochromatic
#6922D7 #8C53E4 #AF88EC #D2BDF4 #EDE5FB

Accessibility & contrast

On white

2.78
#AF88EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AF88EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF88EC
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF88EC#FFFFFF#000000##000000
##AF88EC1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9BF0
Deuteranopia (green-blind)
#759AE9
Tritanopia (blue-blind)
#A499AF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af88ec;
/* rgb */ color: rgb(175, 136, 236);
/* oklch */ color: oklch(70.4% 0.147 300.7);
Tailwind
colors: {
  custom: {
    50: '#c9abf2',
    500: '#af88ec',
    950: '#000000',
  },
}
SCSS
$custom: #af88ec;
$custom-light: #c9abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af88ec",
  "rgb": {
    "r": 175,
    "g": 136,
    "b": 236
  },
  "hsl": {
    "h": 263.4,
    "s": 72.464,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70358,
    "c": 0.14669,
    "h": 300.7
  },
  "luminance": 0.32778
}

Semantic roles & 50–950 ramp

primary
#AF88EC
secondary
#E8F2D9
accent
#D51188
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF88EC

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

Preview Lab → · Contrast checker → · Palette generator →

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