#AF87EE#AF87EE

#AF87EE is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.3% C 0.151 H 300.5°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF87EE
RGBrgb(175, 135, 238)
HSLhsl(263, 75%, 73%)
HSVhsv(263, 43%, 93%)
CMYKcmyk(26.5%, 43.3%, 0%, 6.7%)
CIE-LABlab(63.85, 35.98, -46.46)
CIE-LCHlch(63.85, 58.76, 307.75°)
OKLaboklab(70.29% 0.0765 -0.13)
OKLCHoklch(70.29% 0.151 300.5)
XYZxyz(41.7723, 32.6148, 84.9669)
Luminance0.3261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87EE #C6EE87
analogous
#8792EE #AF87EE #E287EE
triadic
#AF87EE #EEAF87 #87EEAF
tetradic
#AF87EE #EE8792 #C6EE87 #87EEE2
square
#AF87EE #EE8792 #C6EE87 #87EEE2
split-complementary
#AF87EE #EEE287 #92EE87
monochromatic
#681FDC #8B51E6 #AF87EE #D3BDF6 #EDE4FB

Accessibility & contrast

On white

2.79
#AF87EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF87EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87EE
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87EE#FFFFFF#000000##000000
##AF87EE1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9AF2
Deuteranopia (green-blind)
#739AEB
Tritanopia (blue-blind)
#A399AF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87ee;
/* rgb */ color: rgb(175, 135, 238);
/* oklch */ color: oklch(70.3% 0.151 300.5);
Tailwind
colors: {
  custom: {
    50: '#c9aaf4',
    500: '#af87ee',
    950: '#000000',
  },
}
SCSS
$custom: #af87ee;
$custom-light: #c9aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ee",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 263.301,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70288,
    "c": 0.15082,
    "h": 300.5
  },
  "luminance": 0.32615
}

Semantic roles & 50–950 ramp

primary
#AF87EE
secondary
#E8F3D8
accent
#D70E89
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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