#AF87EA#AF87EA

#AF87EA is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.1% C 0.146 H 301.4°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AF87EA
RGBrgb(175, 135, 234)
HSLhsl(264, 70%, 72%)
HSVhsv(264, 42%, 92%)
CMYKcmyk(25.2%, 42.3%, 0%, 8.2%)
CIE-LABlab(63.66, 35.03, -44.55)
CIE-LCHlch(63.66, 56.67, 308.17°)
OKLaboklab(70.08% 0.0759 -0.1244)
OKLCHoklch(70.08% 0.146 301.4)
XYZxyz(41.1911, 32.3823, 81.9063)
Luminance0.3238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87EA #C2EA87
analogous
#8791EA #AF87EA #E087EA
triadic
#AF87EA #EAAF87 #87EAAF
tetradic
#AF87EA #EA8791 #C2EA87 #87EAE0
square
#AF87EA #EA8791 #C2EA87 #87EAE0
split-complementary
#AF87EA #EAE087 #91EA87
monochromatic
#6B25D2 #8C53E1 #AF87EA #D2BBF3 #EEE5FA

Accessibility & contrast

On white

2.81
#AF87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#AF87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87EA
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87EA#FFFFFF#000000##000000
##AF87EA1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEE
Deuteranopia (green-blind)
#759AE7
Tritanopia (blue-blind)
#A498AD
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af87ea;
/* rgb */ color: rgb(175, 135, 234);
/* oklch */ color: oklch(70.1% 0.146 301.4);
Tailwind
colors: {
  custom: {
    50: '#c9aaf1',
    500: '#af87ea',
    950: '#000000',
  },
}
SCSS
$custom: #af87ea;
$custom-light: #c9aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ea",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 264.242,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70083,
    "c": 0.14574,
    "h": 301.4
  },
  "luminance": 0.32382
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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